Task #131057 - added.err
back to task #131057download
Error: GCC_ANALYZER_WARNING (CWE-457):
guestfs-tools-1.56.0/builder/index-parse.y:118:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyvsp[2305843009213693951].section’
guestfs-tools-1.56.0/builder/index-parse.y:167:1: enter_function: entry to ‘do_parse’
guestfs-tools-1.56.0/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):
guestfs-tools-1.56.0/builder/index-scan.c:1549:54: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(64, yyscanner)’
guestfs-tools-1.56.0/builder/index-scan.c:1536:21: enter_function: entry to ‘yy_create_buffer’
guestfs-tools-1.56.0/builder/index-scan.c:1540:24: call_function: calling ‘yyalloc’ from ‘yy_create_buffer’
guestfs-tools-1.56.0/builder/index-scan.c:1540:24: return_function: returning to ‘yy_create_buffer’ from ‘yyalloc’
guestfs-tools-1.56.0/builder/index-scan.c:1541:12: branch_false: following ‘false’ branch...
guestfs-tools-1.56.0/builder/index-scan.c:1544:2: branch_false: ...to here
guestfs-tools-1.56.0/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):
guestfs-tools-1.56.0/builder/index-scan.c:1810:26: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(n, yyscanner)’
guestfs-tools-1.56.0/builder/index-scan.c:1794:17: enter_function: entry to ‘yy_scan_bytes’
guestfs-tools-1.56.0/builder/index-scan.c:1803:24: call_function: calling ‘yyalloc’ from ‘yy_scan_bytes’
guestfs-tools-1.56.0/builder/index-scan.c:1803:24: return_function: returning to ‘yy_scan_bytes’ from ‘yyalloc’
guestfs-tools-1.56.0/builder/index-scan.c:1804:12: branch_false: following ‘false’ branch...
guestfs-tools-1.56.0/builder/index-scan.c:1804:12: branch_false: ...to here
guestfs-tools-1.56.0/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: CPPCHECK_WARNING (CWE-476):
guestfs-tools-1.56.0/common/options/keys.c:145: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: out
# 143| * rest of the code simpler.
# 144| */
# 145|-> memcpy (out, "base64:", 7);
# 146| out[7 + outlen] = '\0';
# 147| out += 7;
Error: CPPCHECK_WARNING (CWE-476):
guestfs-tools-1.56.0/common/options/keys.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: out
# 144| */
# 145| memcpy (out, "base64:", 7);
# 146|-> out[7 + outlen] = '\0';
# 147| out += 7;
# 148|
Error: CPPCHECK_WARNING (CWE-682):
guestfs-tools-1.56.0/common/options/keys.c:147: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
# 145| memcpy (out, "base64:", 7);
# 146| out[7 + outlen] = '\0';
# 147|-> out += 7;
# 148|
# 149| for (i = 0, j = 0; i < inplen;) {