firefox-clang - scan-build results

User:root@ip-172-31-47-66
Working Directory:/root/firefox-clang
Command Line:./mach -v --log-no-times build
Clang Version:Debian clang version 22.0.0 (++20251231100939+9f0d5cd0c228-1~exp1~20251231221110.3298)
Date:Thu Jan 1 09:44:41 2026

Bug Summary

Bug TypeQuantityDisplay?
All Bugs101
API
Argument with 'nonnull' attribute passed null3
Logic error
Assigned value is uninitialized1
Branch condition evaluates to a garbage value2
Called function pointer is an uninitialized pointer value1
Dereference of null pointer12
Possibly undefined arithmetic operation involving a null pointer4
Result of operation is garbage or undefined2
Uninitialized argument value19
Memory error
Memory leak1
Performance
Excessive Padding7
Stream handling error
Invalid stream state1
Resource leak1
Suspicious operation
Bitwise shift1
Unix API
Allocator sizeof operand mismatch1
Unused code
Dead assignment32
Dead increment5
Dead initialization8

Filter Results by File

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length Description
Unix APIAllocator sizeof operand mismatchroot/firefox-clang/nsprpub/pr/src/misc/prdtoa.cBalloc5701Result of 'malloc' is converted to a pointer of type 'Bigint', which is incompatible with sizeof operand type 'double'View Report
APIArgument with 'nonnull' attribute passed nullroot/firefox-clang/third_party/sqlite3/ext/fts5.cfts5SegiterPoslist1318526Null pointer passed to 1st parameter expecting 'nonnull'View Report
APIArgument with 'nonnull' attribute passed nullroot/firefox-clang/config/nsinstall.cmain31612Null pointer passed to 1st parameter expecting 'nonnull'View Report
APIArgument with 'nonnull' attribute passed nullroot/firefox-clang/config/pathsub.cino2name9413Null pointer passed to 1st parameter expecting 'nonnull'View Report
Logic errorAssigned value is uninitializedroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Filter_point715834Assigned value is uninitializedView Report
Suspicious operationBitwise shiftroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cbitmap_set574437The result of left shift is undefined because the right operand is negativeView Report
Logic errorBranch condition evaluates to a garbage valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0_result_id384726Branch condition evaluates to a garbage valueView Report
Logic errorBranch condition evaluates to a garbage valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec_npy_eachBestIndex31434Branch condition evaluates to a garbage valueView Report
Logic errorCalled function pointer is an uninitialized pointer valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_Insert832125Called function pointer is an uninitialized pointer valueView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/smime/cmsencode.cNSS_CMSEncoder_Cancel6631Value stored to 'rv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/smime/cmsrecinfo.cNSS_CMSRecipientInfo_UnwrapBulkKey5881Value stored to 'algid' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/smime/cmsrecinfo.cNSS_CMSRecipientInfo_UnwrapBulkKey5891Value stored to 'parameters' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/smime/cmsrecinfo.cNSS_CMSRecipientInfo_UnwrapBulkKey5901Value stored to 'enckey' is never readView Report
Unused codeDead assignmentroot/firefox-clang/config/nsinstall.cmain3161Value stored to 'tdlen' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pkcs12/p12d.csec_pkcs12_validate_cert_nickname22151Value stored to 'setNickname' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pkcs12/p12dec.csec_pkcs12_decode_authenticated_safe3121Value stored to 'rv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pkcs12/p12dec.csec_pkcs12_get_safe_contents5491Value stored to 'rv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pkcs12/p12dec.csec_pkcs12_validate_encrypted_safe3531Value stored to 'valid' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pkcs7/p7common.cSEC_PKCS7EncryptContents4511Value stored to 'rv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pkcs7/p7common.cSEC_PKCS7EncryptContents4561Value stored to 'rv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pkcs7/p7decode.csec_pkcs7_verify_signature17101Value stored to 'rv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11cxt.cPK11_CipherOp8961Value stored to 'crv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11cxt.cPK11_CipherOp9031Value stored to 'crv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11hpke.cPK11_HPKE_ExportSecret9281Value stored to 'walker' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11hpke.cpk11_hpke_ExtractAndExpand8291Value stored to 'walker' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11hpke.cpk11_hpke_KeySchedule10281Value stored to 'walker' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11hpke.cpk11_hpke_LabeledExpand7611Value stored to 'walker' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11obj.cPK11_DestroyGenericObjects16181Value stored to 'nextObject' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11skey.cPK11_GetWrapKey3821Value stored to 'type' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pk11wrap/pk11slot.cPK11_InitToken14331Value stored to 'crv' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pki/pkibase.cadd_object_instance7711Value stored to 'status' is never readView Report
Unused codeDead assignmentroot/firefox-clang/security/nss/lib/pki/pkibase.cadd_object_instance7911Value stored to 'status' is never readView Report
Unused codeDead assignmentroot/firefox-clang/nsprpub/lib/ds/plvrsion.clibVersionPoint891Value stored to 'dummy' is never readView Report
Unused codeDead assignmentroot/firefox-clang/nsprpub/lib/ds/plvrsion.clibVersionPoint901Value stored to 'dummy' is never readView Report
Unused codeDead assignmentroot/firefox-clang/nsprpub/pr/src/misc/prdtoa.cPR_strtod23121Value stored to 'dsign' is never readView Report
Unused codeDead assignmentroot/firefox-clang/nsprpub/pr/src/misc/prtime.cPR_ParseTimeStringToExplodedTime16011Value stored to 'zone' is never readView Report
Unused codeDead assignmentroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cnpy_token_next26871Value stored to 'ptr' is never readView Report
Unused codeDead assignmentroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Filter_knn69011Value stored to 'rc' is never readView Report
Unused codeDead assignmentroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_Delete85851Value stored to 'rc' is never readView Report
Unused codeDead assignmentroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0_init47101Value stored to 'rc' is never readView Report
Unused codeDead assignmentroot/firefox-clang/nsprpub/pr/src/md/unix/uxshm.c_MD_OpenSharedMemory981Value stored to 'rc' is never readView Report
Unused codeDead incrementroot/firefox-clang/security/nss/lib/pk11wrap/pk11hpke.cPK11_HPKE_ImportContext4391Value stored to 'walker' is never readView Report
Unused codeDead incrementroot/firefox-clang/security/nss/lib/pk11wrap/pk11hpke.cpk11_hpke_KeySchedule10461Value stored to 'off' is never readView Report
Unused codeDead incrementroot/firefox-clang/nsprpub/pr/src/misc/prdtoa.cPR_strtod23761Value stored to 'dsign' is never readView Report
Unused codeDead incrementroot/firefox-clang/security/nss/lib/pki/tdcache.cadd_cert_to_cache7891Value stored to 'added' is never readView Report
Unused codeDead incrementroot/firefox-clang/nsprpub/pr/src/md/unix/uxrng.c_PR_MD_GetRandomNoise1221Value stored to 'size' is never readView Report
Unused codeDead initializationtmp/conftestr569ksf_.cppmain81Value stored to 'foo' during its initialization is never readView Report
Unused codeDead initializationtmp/conftestvfd4vil7.cppmain51Value stored to 'cs' during its initialization is never readView Report
Unused codeDead initializationroot/firefox-clang/memory/build/mozjemalloc.cppPurgeLoop20191Value stored to 'now' during its initialization is never readView Report
Unused codeDead initializationroot/firefox-clang/nsprpub/pr/src/misc/prnetdb.cpr_NetAddrToStringGNI22831Value stored to 'md_af' during its initialization is never readView Report
Unused codeDead initializationroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cparse_npy_buffer30301Value stored to 'major' during its initialization is never readView Report
Unused codeDead initializationroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cparse_npy_buffer30311Value stored to 'minor' during its initialization is never readView Report
Unused codeDead initializationroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cparse_npy_file29441Value stored to 'major' during its initialization is never readView Report
Unused codeDead initializationroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cparse_npy_file29451Value stored to 'minor' during its initialization is never readView Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/fts5.cfts5ApiPhraseFirstColumn2174210Array access (via field 'a') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/fts5.cfts5SetupPrefixIterTokendata1710922Array access (via field 'p') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/fts5.cfts5StorageDeleteFromIndex2346631Array access (from variable 'apVal') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/fts5.cfts5VocabInstanceNewTerm2748029Access to field 'bEof' results in a dereference of a null pointer (loaded from field 'pIter')View Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/fts5.cfts5VocabNextMethod2755237Access to field 'bEof' results in a dereference of a null pointer (loaded from field 'pIter')View Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/fts5.csqlite3Fts5ExprClonePhrase764721Access to field 'nTerm' results in a dereference of a null pointer (loaded from variable 'pOrig')View Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/fts5.csqlite3Fts5ExprEof731037Access to field 'pRoot' results in a dereference of a null pointer (loaded from variable 'p')View Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/fts5.csqlite3Fts5ExprFirst726537Access to field 'pRoot' results in a dereference of a null pointer (loaded from variable 'p')View Report
Logic errorDereference of null pointerroot/firefox-clang/config/pathsub.cino2name9515Access to field 'd_ino' results in a dereference of a null pointer (loaded from variable 'ep')View Report
Logic errorDereference of null pointerroot/firefox-clang/security/nss/lib/pk11wrap/pk11util.cSECMOD_DeleteModuleEx3758Access to field 'internal' results in a dereference of a null pointer (loaded from field 'module')View Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_InsertWriteFinalStep783235Array access (from variable 'bufferChunksValidity') results in a null pointer dereferenceView Report
Logic errorDereference of null pointerroot/firefox-clang/third_party/sqlite3/src/sqlite3.cresetAccumulator151585138Access to field 'nExpr' results in a dereference of a null pointer (loaded from field 'pList')View Report
PerformanceExcessive Paddingroot/firefox-clang/memory/build/PHC.cppPHC6561Excessive padding in 'class PHC' (80 padding bytes, where 16 is optimal). Optimal fields order: mAvgFirstAllocDelay, mPhcState, mNow, mRNG, mFreePageListHead, mFreePageListTail, mMutex, mAllocPages, mAvgAllocDelay, mAvgPageReuseDelay, consider reordering the fields or adding explicit padding membersView Report
PerformanceExcessive Paddingroot/firefox-clang/security/nss/lib/pk11wrap/pk11pars.c4661Excessive padding in 'algListsDef' (8 padding bytes, where 0 is optimal). Optimal fields order: list, description, entries, allowEmpty, consider reordering the fields or adding explicit padding membersView Report
PerformanceExcessive Paddingroot/firefox-clang/security/nss/lib/util/secoidt.hSECOidDataStr5551Excessive padding in 'struct SECOidDataStr' (8 padding bytes, where 0 is optimal). Optimal fields order: desc, mechanism, oid, offset, supportedExtension, consider reordering the fields or adding explicit padding membersView Report
PerformanceExcessive Paddingroot/firefox-clang/security/nss/lib/ssl/ssl3ext.hTLSExtensionDataStr331Excessive padding in 'struct TLSExtensionDataStr' (52 padding bytes, where 4 is optimal). Optimal fields order: advertised, echAdvertised, sniNameArr, sigSchemes, delegCredSigSchemes, delegCredSigSchemesAdvertised, selectedGroup, peerDelegCred, selectedPsk, ech, remoteKeyShares, psk_ke_modes, signedCertTimestamps, certReqContext, nextProto, pskBinder, cookie, applicationToken, certReqAuthorities, serverHelloSenders, encryptedExtensionsSenders, certificateSenders, ticketTimestampVerified, emptySessionTicket, sentSessionTicketInClientHello, max_early_data_size, sniNameArrSize, peerSupportsFfdheGroups, numSigSchemes, numDelegCredSigSchemes, numDelegCredSigSchemesAdvertised, nextProtoState, echXtnOffset, lastXtnOffset, pskBindersLen, ticketAge, peerRequestedDelegCred, sendingDelegCredToPeer, certificateCompressionAdvertised, numAdvertised, echNumAdvertised, numNegotiated, dtlsSRTPCipherSuite, recordSizeLimit, compressionAlg, negotiated, consider reordering the fields or adding explicit padding membersView Report
PerformanceExcessive Paddingroot/firefox-clang/security/nss/lib/ssl/sslimpl.hSSL3HandshakeStateStr6421Excessive padding in 'struct SSL3HandshakeStateStr' (53 padding bytes, where 5 is optimal). Optimal fields order: md5, sha, shaEchInner, shaPostHandshake, kea_def, suite_def, msg_len, clientAuthSignatureSchemes, restartTarget, rtTimer, ackTimer, hdTimer, currentSecret, resumptionMasterSecret, dheSecret, clientEarlyTrafficSecret, clientHsTrafficSecret, serverHsTrafficSecret, clientTrafficSecret, serverTrafficSecret, earlyExporterSecret, exporterSecret, rttEstimate, echHpkeCtx, echPublicName, grease, dtlsHandhakeKeyUpdateMessage, chExtensionPermutation, remoteExtensions, echOuterExtensions, lastMessageFlight, cipherSpecs, bufferedEarlyData, psks, dtlsSentHandshake, dtlsRcvdHandshake, messages, echInnerMessages, msg_body, recvdFragments, cookie, srvVirtName, fakeSid, greaseEchBuf, dtls13ClientMessageBuffer, newSessionTicket, timers, ws, hashType, signatureScheme, header_bytes, msg_type, isResuming, sendingSCSV, receivedNewSessionTicket, clientCertificatePending, clientAuthSignatureSchemesLen, authCertificatePending, canFalseStart, preliminaryInfo, recvdHighWater, isKeyUpdateInProgress, allowPreviousEpoch, rtRetries, zeroRttState, zeroRttIgnore, helloRetry, receivedCcs, rejectCcs, clientCertRequested, endOfFlight, echAccepted, echDecided, echInvalidExtension, keyUpdateDeferred, deferredKeyUpdateRequest, kea_def_mutable, cipher_suite, finishedBytes, sendMessageSeq, maxMessageSent, recvMessageSeq, zeroRttSuite, ticketNonce, greaseEchSize, server_random, client_random, client_inner_random, finishedMsgs, consider reordering the fields or adding explicit padding membersView Report
PerformanceExcessive Paddingroot/firefox-clang/security/nss/lib/ssl/sslspec.hssl3MACDefStr851Excessive padding in 'struct ssl3MACDefStr' (8 padding bytes, where 0 is optimal). Optimal fields order: mmech, mac, pad_size, mac_size, oid, consider reordering the fields or adding explicit padding membersView Report
PerformanceExcessive Paddingroot/firefox-clang/security/nss/lib/ssl/tls13hkdf.c191Excessive padding in 'struct (unnamed at /root/firefox-clang/security/nss/lib/ssl/tls13hkdf.c:19:14)' (8 padding bytes, where 0 is optimal). Optimal fields order: pkcs11Mech, hash, hashSize, consider reordering the fields or adding explicit padding membersView Report
Stream handling errorInvalid stream stateroot/firefox-clang/security/nss/lib/util/utilmod.cnssutil_ReadSecmodDB41216File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behaviorView Report
Memory errorMemory leakroot/firefox-clang/browser/app/nsBrowserApp.cppdo_main18015Potential memory leakView Report
Logic errorPossibly undefined arithmetic operation involving a null pointerroot/firefox-clang/security/nss/lib/smime/cmsudf.cnss_cmstype_hash_key822Subtraction of a probably non-null pointer and a null pointer may result in undefined behaviorView Report
Logic errorPossibly undefined arithmetic operation involving a null pointerroot/firefox-clang/security/nss/lib/base/hash.cnss_identity_hash511Subtraction of a probably non-null pointer and a null pointer may result in undefined behaviorView Report
Logic errorPossibly undefined arithmetic operation involving a null pointerroot/firefox-clang/security/nss/lib/util/secoid.csecoid_HashNumber21291Subtraction of a probably non-null pointer and a null pointer may result in undefined behaviorView Report
Logic errorPossibly undefined arithmetic operation involving a null pointerroot/firefox-clang/security/nss/lib/base/tracker.cidentity_hash291Subtraction of a probably non-null pointer and a null pointer may result in undefined behaviorView Report
Stream handling errorResource leakroot/firefox-clang/security/nss/lib/pk11wrap/debug_module.cprint_final_statistics345422Opened stream never closed. Potential resource leakView Report
Logic errorResult of operation is garbage or undefinedroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cparse_npy_header274029The left operand of '!=' is a garbage valueView Report
Logic errorResult of operation is garbage or undefinedroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0_parse_vector_column230316The left operand of '!=' is a garbage valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/config/nsinstall.ccopyfile152302nd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cparse_npy_buffer3054311st function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cparse_npy_file2982371st function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Filter_knn7056391st function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Filter_knn_chunks_iter678481st function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Filter_point7149342nd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_Delete8553222nd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_Delete8558202nd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_Insert8321251st function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_InsertWriteFinalStep7871283rd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_Update8718272nd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_Update8762404th function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_Update8789452nd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0Update_UpdateVectorColumn8676501st function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0_get_latest_chunk_rowid4159583rd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0_get_partition_value_for_rowid3968313rd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0_get_vector_data3890285th function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0_new_chunk4446513rd function call argument is an uninitialized valueView Report
Logic errorUninitialized argument valueroot/firefox-clang/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.cvec0_result_metadata_value_for_rowid4045315th function call argument is an uninitialized valueView Report