Task #131057 - fixed.err
back to task #131057download
Error: GCC_ANALYZER_WARNING (CWE-457):
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):
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):
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):
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):
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|