Error: GCC_ANALYZER_WARNING (CWE-457): [#def1] nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:73:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*ptr.stream’ nss-3_119_1/nss/lib/freebl/leancrypto/ml_dsa_44_signature_c.c:56:1: enter_function: entry to ‘lc_dilithium_44_sign_c’ nss-3_119_1/nss/lib/freebl/leancrypto/ml_dsa_44_signature_c.c:61:12: call_function: calling ‘lc_dilithium_sign_impl’ from ‘lc_dilithium_44_sign_c’ # 71| lc_hash_init(struct lc_hash_ctx *ptr) # 72| { # 73|-> if (ptr->stream) { # 74| /* if we already have a context, just reset it, This is # 75| * what the caller wanted, saving a destroy and create */ Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:177:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newBuf’ nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:154:8: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:165:15: branch_false: ...to here nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:166:8: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:171:8: branch_false: ...to here nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:171:8: branch_true: following ‘true’ branch... nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:172:33: branch_true: ...to here nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:172:33: acquire_memory: allocated here nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:173:12: branch_false: following ‘false’ branch (when ‘newBuf’ is non-NULL)... nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:177:9: branch_false: ...to here nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:177:9: throw: if ‘SHAKE_128_HashBuf’ throws an exception... nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:177:9: danger: ‘newBuf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6) # 175| return; # 176| } # 177|-> lc_xof(ptr->hash, ptr->buf, ptr->current_input, newBuf, len); # 178| memcpy(output, newBuf + ptr->current_output, outLen); # 179| memset(newBuf, 0, len); Error: GCC_ANALYZER_WARNING (CWE-457): [#def3] nss-3_119_1/nss/lib/freebl/leancrypto/lc_sha3.h:194:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*ptr.stream’ nss-3_119_1/nss/lib/freebl/leancrypto/dilithium_signature_impl.h:957:1: enter_function: entry to ‘lc_dilithium_verify_impl’ nss-3_119_1/nss/lib/freebl/leancrypto/dilithium_signature_impl.h:962:15: call_function: calling ‘lc_dilithium_verify_ctx_impl’ from ‘lc_dilithium_verify_impl’ nss-3_119_1/nss/lib/freebl/leancrypto/dilithium_signature_impl.h:962:15: return_function: returning to ‘lc_dilithium_verify_impl’ from ‘lc_dilithium_verify_ctx_impl’ nss-3_119_1/nss/lib/freebl/leancrypto/dilithium_signature_impl.h:964:5: call_function: inlined call to ‘lc_dilithium_44_ctx_zero’ from ‘lc_dilithium_verify_impl’ # 192| lc_hash_zero(struct lc_hash_ctx *ptr) # 193| { # 194|-> if (ptr->stream) { # 195| if (ptr->u.ctx_ptr != NULL) { # 196| switch (ptr->hash) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2823:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pubKeyData’ nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2053:1: enter_function: entry to ‘SECKEY_SetPublicValue’ nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2062:8: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2063:9: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2062:9: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2063:38: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2062:9: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2068:5: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2077:8: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2081:5: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2143:8: branch_true: following ‘true’ branch (when ‘rv == 0’)... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2144:14: branch_true: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2144:14: call_function: calling ‘PK11_ImportPublicKey’ from ‘SECKEY_SetPublicValue’ # 2821| SECStatus rv; # 2822| # 2823|-> if (pubKeyData->len <= SHA1_LENGTH) { # 2824| /* probably an already hashed value. The strongest known public # 2825| * key values <= 160 bits would be less than 40 bit symetric in Error: GCC_ANALYZER_WARNING (CWE-457): [#def5] nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2823:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pubKeyData.len’ nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2053:1: enter_function: entry to ‘SECKEY_SetPublicValue’ nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2062:8: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2063:9: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2062:9: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2063:38: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2062:9: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2068:5: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2077:8: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2081:5: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2131:16: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2135:39: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2136:16: branch_false: following ‘false’ branch... nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2144:14: branch_false: ...to here nss-3_119_1/nss/lib/pk11wrap/pk11akey.c:2144:14: call_function: calling ‘PK11_ImportPublicKey’ from ‘SECKEY_SetPublicValue’ # 2821| SECStatus rv; # 2822| # 2823|-> if (pubKeyData->len <= SHA1_LENGTH) { # 2824| /* probably an already hashed value. The strongest known public # 2825| * key values <= 160 bits would be less than 40 bit symetric in
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-201.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | nss-3.115.1-1.fc43 |
| diffbase-store-results-to | /tmp/tmpkiqy2eg9/nss-3.115.1-1.fc43.tar.xz |
| diffbase-time-created | 2026-01-08 19:34:35 |
| diffbase-time-finished | 2026-01-08 19:43:03 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpkiqy2eg9/nss-3.115.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpkiqy2eg9/nss-3.115.1-1.fc43.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-201.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | nss-3.119.1-1.fc44 |
| store-results-to | /tmp/tmp8dsx8yjj/nss-3.119.1-1.fc44.tar.xz |
| time-created | 2026-01-08 19:43:29 |
| time-finished | 2026-01-08 19:51:27 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp8dsx8yjj/nss-3.119.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8dsx8yjj/nss-3.119.1-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |