Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
ccid-1.6.2/redhat-linux-build/libccidtwin.so.p/tokenparser.c:1594:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
ccid-1.6.2/redhat-linux-build/../src/tokenparser.l:203:5: enter_function: entry to ‘bundleParse’
ccid-1.6.2/redhat-linux-build/../src/tokenparser.l:212:12: branch_false: following ‘false’ branch...
ccid-1.6.2/redhat-linux-build/../src/tokenparser.l:219:13: branch_false: ...to here
ccid-1.6.2/redhat-linux-build/../src/tokenparser.l:228:23: call_function: calling ‘tokenparserlex’ from ‘bundleParse’
# 1592|   	 * we need to put in 2 end-of-buffer characters.
# 1593|   	 */
# 1594|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1595|   	if ( ! b->yy_ch_buf )
# 1596|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
ccid-1.6.2/redhat-linux-build/parse.p/tokenparser.c:1594:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
ccid-1.6.2/redhat-linux-build/../src/tokenparser.l:203:5: enter_function: entry to ‘bundleParse’
ccid-1.6.2/redhat-linux-build/../src/tokenparser.l:212:12: branch_false: following ‘false’ branch...
ccid-1.6.2/redhat-linux-build/../src/tokenparser.l:219:13: branch_false: ...to here
ccid-1.6.2/redhat-linux-build/../src/tokenparser.l:228:23: call_function: calling ‘tokenparserlex’ from ‘bundleParse’
# 1592|   	 * we need to put in 2 end-of-buffer characters.
# 1593|   	 */
# 1594|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1595|   	if ( ! b->yy_ch_buf )
# 1596|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-183.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.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namepcsc-lite-ccid-1.6.1-3.fc42
diffbase-store-results-to/tmp/tmpmkqwu8ii/pcsc-lite-ccid-1.6.1-3.fc42.tar.xz
diffbase-time-created2025-04-25 14:40:25
diffbase-time-finished2025-04-25 14:42:01
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpmkqwu8ii/pcsc-lite-ccid-1.6.1-3.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpmkqwu8ii/pcsc-lite-ccid-1.6.1-3.fc42.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-183.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepcsc-lite-ccid-1.6.2-1.fc43
store-results-to/tmp/tmp5g97rzit/pcsc-lite-ccid-1.6.2-1.fc43.tar.xz
time-created2025-04-25 14:42:28
time-finished2025-04-25 14:43:41
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp5g97rzit/pcsc-lite-ccid-1.6.2-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp5g97rzit/pcsc-lite-ccid-1.6.2-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9