Error: GCC_ANALYZER_WARNING (CWE-457): [#def1] guestfs-tools-1.55.5/builder/index-parse.y:115:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyvsp[2305843009213693951].section’ guestfs-tools-1.55.5/builder/index-parse.y:174:1: enter_function: entry to ‘do_parse’ guestfs-tools-1.55.5/builder/index-parse.y:180:9: call_function: calling ‘yyparse’ from ‘do_parse’ # 113| sections: # 114| emptylines section emptylines # 115|-> { $$ = $2; } # 116| | emptylines section EMPTY_LINE emptylines sections # 117| { $$ = $2; $$->next = $5; } Error: GCC_ANALYZER_WARNING (CWE-127): [#def2] guestfs-tools-1.55.5/builder/index-parse.y:117:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read guestfs-tools-1.55.5/builder/index-parse.y:174:1: enter_function: entry to ‘do_parse’ guestfs-tools-1.55.5/builder/index-parse.y:180:9: call_function: calling ‘yyparse’ from ‘do_parse’ # 115| { $$ = $2; } # 116| | emptylines section EMPTY_LINE emptylines sections # 117|-> { $$ = $2; $$->next = $5; } # 118| | emptylines # 119| { $$ = NULL; } Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] guestfs-tools-1.55.5/builder/index-scan.c:1549:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’ guestfs-tools-1.55.5/builder/index-scan.c:1536:21: enter_function: entry to ‘yy_create_buffer’ guestfs-tools-1.55.5/builder/index-scan.c:1540:24: call_function: inlined call to ‘yyalloc’ from ‘yy_create_buffer’ guestfs-tools-1.55.5/builder/index-scan.c:1541:12: branch_false: following ‘false’ branch... guestfs-tools-1.55.5/builder/index-scan.c:1544:2: branch_false: ...to here guestfs-tools-1.55.5/builder/index-scan.c:1549:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 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): [#def4] guestfs-tools-1.55.5/builder/index-scan.c:1810:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’ guestfs-tools-1.55.5/builder/index-scan.c:1794:17: enter_function: entry to ‘yy_scan_bytes’ guestfs-tools-1.55.5/builder/index-scan.c:1803:24: call_function: inlined call to ‘yyalloc’ from ‘yy_scan_bytes’ guestfs-tools-1.55.5/builder/index-scan.c:1804:12: branch_false: following ‘false’ branch... guestfs-tools-1.55.5/builder/index-scan.c:1804:12: branch_false: ...to here guestfs-tools-1.55.5/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| Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] guestfs-tools-1.55.5/common/parallel/parallel.c:225:14: warning[-Wanalyzer-malloc-leak]: leak of 'fp' guestfs-tools-1.55.5/common/parallel/parallel.c:193:8: branch_false: following 'false' branch (when 'err == 0')... guestfs-tools-1.55.5/common/parallel/parallel.c:198:9: branch_false: ...to here guestfs-tools-1.55.5/common/parallel/parallel.c:200:8: branch_false: following 'false' branch (when 'err == 0')... guestfs-tools-1.55.5/common/parallel/parallel.c:206:9: branch_false: ...to here guestfs-tools-1.55.5/common/parallel/parallel.c:206:8: branch_false: following 'false' branch... guestfs-tools-1.55.5/common/parallel/parallel.c:209:9: branch_false: ...to here guestfs-tools-1.55.5/common/parallel/parallel.c:213:10: acquire_memory: allocated here guestfs-tools-1.55.5/common/parallel/parallel.c:214:8: branch_false: following 'false' branch (when 'fp' is non-NULL)... guestfs-tools-1.55.5/common/parallel/parallel.c:221:9: branch_false: ...to here guestfs-tools-1.55.5/common/parallel/parallel.c:225:14: danger: 'fp' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6) # 223| perror ("guestfs_create"); # 224| thread_data->r = -1; # 225|-> return &thread_data->r; # 226| } # 227|
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| 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-111.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | guestfs-tools-1.56.0-3.fc45 |
| diffbase-store-results-to | /tmp/tmpvq5p0vy5/guestfs-tools-1.56.0-3.fc45.tar.xz |
| diffbase-time-created | 2026-08-03 14:58:20 |
| diffbase-time-finished | 2026-08-03 15:01:25 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpvq5p0vy5/guestfs-tools-1.56.0-3.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpvq5p0vy5/guestfs-tools-1.56.0-3.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-111.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | guestfs-tools-1.55.5-1.fc44 |
| store-results-to | /tmp/tmpvm6wa34w/guestfs-tools-1.55.5-1.fc44.tar.xz |
| time-created | 2026-08-03 14:52:52 |
| time-finished | 2026-08-03 14:57:54 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpvm6wa34w/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/tmpvm6wa34w/guestfs-tools-1.55.5-1.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |