Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1200:5: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1119:8: enter_function: entry to 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1140:5: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1143:7: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: call_function: calling 'GetDigestNameByHashAlg' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1146:12: return_function: returning to 'OSSLCryptKDFe' from 'GetDigestNameByHashAlg'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1147:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:9: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1149:8: branch_false: following 'false' branch...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1151:5: call_function: inlined call to 'strcpy' from 'OSSLCryptKDFe'
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1160:14: acquire_memory: allocated here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1161:8: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1164:11: branch_false: ...to here
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1200:5: throw: if 'EVP_KDF_CTX_free' throws an exception...
libtpms-0.10.2/src/tpm2/crypto/openssl/Helpers.c:1200:5: danger: 'buffer' leaks here; was allocated at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
# 1198|   
# 1199|   out:
# 1200|->     EVP_KDF_CTX_free(ctx);
# 1201|       EVP_KDF_free(kdf);
# 1202|       free(buffer);

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-123.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibtpms-0.10.1-2.fc43
diffbase-store-results-to/tmp/tmpd3gkv1_2/libtpms-0.10.1-2.fc43.tar.xz
diffbase-time-created2026-01-08 19:10:55
diffbase-time-finished2026-01-08 19:13:43
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpd3gkv1_2/libtpms-0.10.1-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpd3gkv1_2/libtpms-0.10.1-2.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-123.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibtpms-0.10.2-2.fc44
store-results-to/tmp/tmpn5e_ftes/libtpms-0.10.2-2.fc44.tar.xz
time-created2026-01-08 19:13:59
time-finished2026-01-08 19:16:21
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpn5e_ftes/libtpms-0.10.2-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpn5e_ftes/libtpms-0.10.2-2.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9