Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
guestfs-tools-1.55.6/builder/index-parse.y:118:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyvsp[2305843009213693951].section’
guestfs-tools-1.55.6/builder/index-parse.y:167:1: enter_function: entry to ‘do_parse’
guestfs-tools-1.55.6/builder/index-parse.y:173:9: call_function: calling ‘yyparse’ from ‘do_parse’
#  116|           { $$ = $1; }
#  117|       | section sections
#  118|->         { $$ = $1; $$->next = $2; }
#  119|   
#  120|   section:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
guestfs-tools-1.55.6/builder/index-scan.c:1549:54: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(64, yyscanner)’
guestfs-tools-1.55.6/builder/index-scan.c:1536:21: enter_function: entry to ‘yy_create_buffer’
guestfs-tools-1.55.6/builder/index-scan.c:1540:24: call_function: calling ‘yyalloc’ from ‘yy_create_buffer’
guestfs-tools-1.55.6/builder/index-scan.c:1540:24: return_function: returning to ‘yy_create_buffer’ from ‘yyalloc’
guestfs-tools-1.55.6/builder/index-scan.c:1541:12: branch_false: following ‘false’ branch...
guestfs-tools-1.55.6/builder/index-scan.c:1544:2: branch_false: ...to here
guestfs-tools-1.55.6/builder/index-scan.c:1549:54: danger: ‘yyalloc(64, yyscanner)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
# 1547|   	/* yy_ch_buf has to be 2 characters longer than the size given because
# 1548|   	 * we need to put in 2 end-of-buffer characters.
# 1549|-> 	 */
# 1550|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1551|   	if ( ! b->yy_ch_buf )

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
guestfs-tools-1.55.6/builder/index-scan.c:1810:26: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(n,  yyscanner)’
guestfs-tools-1.55.6/builder/index-scan.c:1794:17: enter_function: entry to ‘yy_scan_bytes’
guestfs-tools-1.55.6/builder/index-scan.c:1803:24: call_function: calling ‘yyalloc’ from ‘yy_scan_bytes’
guestfs-tools-1.55.6/builder/index-scan.c:1803:24: return_function: returning to ‘yy_scan_bytes’ from ‘yyalloc’
guestfs-tools-1.55.6/builder/index-scan.c:1804:12: branch_false: following ‘false’ branch...
guestfs-tools-1.55.6/builder/index-scan.c:1804:12: branch_false: ...to here
guestfs-tools-1.55.6/builder/index-scan.c:1812:6: call_function: calling ‘yy_scan_buffer’ from ‘yy_scan_bytes’
# 1808|   	for ( i = 0; i < _yybytes_len; ++i )
# 1809|   		buf[i] = yybytes[i];
# 1810|-> 
# 1811|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1812|   

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.1
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-74.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.20260420.180315.gd39a405.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameguestfs-tools-1.55.5-1.fc44
diffbase-store-results-to/tmp/tmpr9aonc59/guestfs-tools-1.55.5-1.fc44.tar.xz
diffbase-time-created2026-04-28 15:52:58
diffbase-time-finished2026-04-28 15:58:31
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpr9aonc59/guestfs-tools-1.55.5-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpr9aonc59/guestfs-tools-1.55.5-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-74.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260420.180315.gd39a405.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameguestfs-tools-1.55.6-1.fc45
store-results-to/tmp/tmpfvznyk16/guestfs-tools-1.55.6-1.fc45.tar.xz
time-created2026-04-28 15:58:47
time-finished2026-04-28 16:02:18
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpfvznyk16/guestfs-tools-1.55.6-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfvznyk16/guestfs-tools-1.55.6-1.fc45.src.rpm'
tool-versioncsmock-3.8.5-1.el9