guestfs-tools-1.53.9-1.fc43
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
guestfs-tools-1.53.9/builder/index-parse.c:1231:11: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
guestfs-tools-1.53.9/builder/index-parse.y:174:1: enter_function: entry to ‘do_parse’
guestfs-tools-1.53.9/builder/index-parse.y:180:9: call_function: calling ‘yyparse’ from ‘do_parse’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
guestfs-tools-1.53.9/builder/index-parse.c:1235:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
guestfs-tools-1.53.9/builder/index-parse.y:174:1: enter_function: entry to ‘do_parse’
guestfs-tools-1.53.9/builder/index-parse.y:180:9: call_function: calling ‘yyparse’ from ‘do_parse’
Error: CPPCHECK_WARNING (CWE-476): [#def3]
guestfs-tools-1.53.9/builder/index-parse.y:59: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def4]
guestfs-tools-1.53.9/builder/index-parse.y:60: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-682): [#def5]
guestfs-tools-1.53.9/builder/index-parse.y:61: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def6]
guestfs-tools-1.53.9/builder/index-parse.y:62: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def7]
guestfs-tools-1.53.9/builder/index-parse.y:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: yyval.section
Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
guestfs-tools-1.53.9/builder/index-parse.y:124:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
guestfs-tools-1.53.9/builder/index-parse.y:174:1: enter_function: entry to ‘do_parse’
guestfs-tools-1.53.9/builder/index-parse.y:180:9: call_function: calling ‘yyparse’ from ‘do_parse’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
guestfs-tools-1.53.9/builder/index-scan.c:1550:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
guestfs-tools-1.53.9/builder/index-scan.c:1536:21: enter_function: entry to ‘yy_create_buffer’
guestfs-tools-1.53.9/builder/index-scan.c:1540:24: call_function: inlined call to ‘yyalloc’ from ‘yy_create_buffer’
guestfs-tools-1.53.9/builder/index-scan.c:1541:12: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/builder/index-scan.c:1544:2: branch_false: ...to here
guestfs-tools-1.53.9/builder/index-scan.c:1550:12: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
guestfs-tools-1.53.9/builder/index-scan.c:1592:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
guestfs-tools-1.53.9/builder/index-scan.c:1387:16: enter_function: entry to ‘input’
guestfs-tools-1.53.9/builder/index-scan.c:1396:5: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/builder/index-scan.c:1402:41: branch_true: ...to here
guestfs-tools-1.53.9/builder/index-scan.c:1402:20: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/builder/index-scan.c:1408:63: branch_false: ...to here
guestfs-tools-1.53.9/builder/index-scan.c:1411:13: call_function: calling ‘yy_get_next_buffer’ from ‘input’
guestfs-tools-1.53.9/builder/index-scan.c:1411:13: return_function: returning to ‘input’ from ‘yy_get_next_buffer’
guestfs-tools-1.53.9/builder/index-scan.c:1425:41: call_function: calling ‘yyrestart’ from ‘input’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
guestfs-tools-1.53.9/builder/index-scan.c:1810:26: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
guestfs-tools-1.53.9/builder/index-scan.c:1794:17: enter_function: entry to ‘yy_scan_bytes’
guestfs-tools-1.53.9/builder/index-scan.c:1803:24: call_function: inlined call to ‘yyalloc’ from ‘yy_scan_bytes’
guestfs-tools-1.53.9/builder/index-scan.c:1804:12: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/builder/index-scan.c:1812:6: call_function: calling ‘yy_scan_buffer’ from ‘yy_scan_bytes’
Error: CPPCHECK_WARNING (CWE-476): [#def12]
guestfs-tools-1.53.9/builder/index-validate.c:116: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: in
Error: CPPCHECK_WARNING (CWE-476): [#def13]
guestfs-tools-1.53.9/cat/cat.c:174: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mp
Error: CPPCHECK_WARNING (CWE-476): [#def14]
guestfs-tools-1.53.9/cat/cat.c:209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def15]
guestfs-tools-1.53.9/cat/cat.c:210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def16]
guestfs-tools-1.53.9/cat/cat.c:211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def17]
guestfs-tools-1.53.9/cat/cat.c:219: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def18]
guestfs-tools-1.53.9/cat/cat.c:220: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def19]
guestfs-tools-1.53.9/cat/cat.c:221: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def20]
guestfs-tools-1.53.9/cat/filesystems.c:568: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parent_name
Error: CPPCHECK_WARNING (CWE-476): [#def21]
guestfs-tools-1.53.9/cat/filesystems.c:766: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
guestfs-tools-1.53.9/cat/filesystems.c:768:10: warning[-Wanalyzer-malloc-leak]: leak of ‘no_parents()’
guestfs-tools-1.53.9/cat/filesystems.c:723:1: enter_function: entry to ‘do_output_blockdevs’
guestfs-tools-1.53.9/cat/filesystems.c:728:6: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/cat/filesystems.c:731:15: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/cat/filesystems.c:733:37: branch_true: ...to here
guestfs-tools-1.53.9/cat/filesystems.c:737:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/filesystems.c:740:9: branch_false: ...to here
guestfs-tools-1.53.9/cat/filesystems.c:746:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/filesystems.c:749:17: branch_false: ...to here
guestfs-tools-1.53.9/cat/filesystems.c:749:17: call_function: calling ‘no_parents’ from ‘do_output_blockdevs’
guestfs-tools-1.53.9/cat/filesystems.c:749:17: return_function: returning to ‘do_output_blockdevs’ from ‘no_parents’
guestfs-tools-1.53.9/cat/filesystems.c:768:10: danger: ‘no_parents()’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
guestfs-tools-1.53.9/cat/filesystems.c:797:5: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_of_md(*<unknown>)’
guestfs-tools-1.53.9/cat/filesystems.c:723:1: enter_function: entry to ‘do_output_blockdevs’
guestfs-tools-1.53.9/cat/filesystems.c:728:6: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/cat/filesystems.c:731:15: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/cat/filesystems.c:733:37: branch_true: ...to here
guestfs-tools-1.53.9/cat/filesystems.c:737:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/filesystems.c:740:9: branch_false: ...to here
guestfs-tools-1.53.9/cat/filesystems.c:746:8: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/cat/filesystems.c:747:17: branch_true: ...to here
guestfs-tools-1.53.9/cat/filesystems.c:747:17: call_function: calling ‘parents_of_md’ from ‘do_output_blockdevs’
guestfs-tools-1.53.9/cat/filesystems.c:747:17: return_function: returning to ‘do_output_blockdevs’ from ‘parents_of_md’
guestfs-tools-1.53.9/cat/filesystems.c:797:5: danger: ‘parents_of_md(*<unknown>)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
Error: CPPCHECK_WARNING (CWE-476): [#def24]
guestfs-tools-1.53.9/cat/filesystems.c:806: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def25]
guestfs-tools-1.53.9/cat/filesystems.c:807: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def26]
guestfs-tools-1.53.9/cat/ls.c:280: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mp
Error: CPPCHECK_WARNING (CWE-476): [#def27]
guestfs-tools-1.53.9/cat/ls.c:319: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def28]
guestfs-tools-1.53.9/cat/ls.c:320: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def29]
guestfs-tools-1.53.9/cat/ls.c:321: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def30]
guestfs-tools-1.53.9/cat/ls.c:329: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def31]
guestfs-tools-1.53.9/cat/ls.c:330: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def32]
guestfs-tools-1.53.9/cat/ls.c:331: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def33]
guestfs-tools-1.53.9/cat/tail.c:187: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mp
Error: CPPCHECK_WARNING (CWE-401): [#def34]
guestfs-tools-1.53.9/cat/tail.c:286: error[memleak]: Memory leak: file
Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
guestfs-tools-1.53.9/cat/tail.c:349:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘file’
guestfs-tools-1.53.9/cat/tail.c:262:1: enter_function: entry to ‘do_tail’
guestfs-tools-1.53.9/cat/tail.c:272:10: acquire_memory: this call could return NULL
guestfs-tools-1.53.9/cat/tail.c:281:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:284:10: call_function: inlined call to ‘disk_mtime’ from ‘do_tail’
guestfs-tools-1.53.9/cat/tail.c:285:6: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:288:10: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/cat/tail.c:293:37: branch_true: ...to here
guestfs-tools-1.53.9/cat/tail.c:302:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:305:8: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:310:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:325:5: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:325:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
guestfs-tools-1.53.9/cat/tail.c:326:26: branch_true: ...to here
guestfs-tools-1.53.9/cat/tail.c:329:10: branch_false: following ‘false’ branch (when ‘windows == 0’)...
guestfs-tools-1.53.9/cat/tail.c:335:32: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:336:12: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:342:7: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:345:10: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/cat/tail.c:347:13: branch_true: ...to here
guestfs-tools-1.53.9/cat/tail.c:347:12: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/cat/tail.c:348:11: branch_true: ...to here
guestfs-tools-1.53.9/cat/tail.c:349:11: danger: ‘file + (long unsigned int)i * 16’ could be NULL: unchecked value from [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
guestfs-tools-1.53.9/cat/tail.c:368:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘file’
guestfs-tools-1.53.9/cat/tail.c:262:1: enter_function: entry to ‘do_tail’
guestfs-tools-1.53.9/cat/tail.c:272:10: acquire_memory: this call could return NULL
guestfs-tools-1.53.9/cat/tail.c:281:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:284:10: call_function: inlined call to ‘disk_mtime’ from ‘do_tail’
guestfs-tools-1.53.9/cat/tail.c:285:6: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:288:10: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/cat/tail.c:293:37: branch_true: ...to here
guestfs-tools-1.53.9/cat/tail.c:302:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:305:8: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:310:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:325:5: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:325:17: branch_true: following ‘true’ branch (when ‘i < argc’)...
guestfs-tools-1.53.9/cat/tail.c:326:26: branch_true: ...to here
guestfs-tools-1.53.9/cat/tail.c:329:10: branch_false: following ‘false’ branch (when ‘windows == 0’)...
guestfs-tools-1.53.9/cat/tail.c:335:32: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:336:12: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:342:7: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:345:10: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/cat/tail.c:359:41: branch_false: ...to here
guestfs-tools-1.53.9/cat/tail.c:368:13: danger: ‘file + (long unsigned int)i * 16’ could be NULL: unchecked value from [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
guestfs-tools-1.53.9/common/edit/file-edit.c:326:6: warning[-Wanalyzer-malloc-leak]: leak of 'generate_random_name(guestfs_realpath(g, fn))'
guestfs-tools-1.53.9/common/edit/file-edit.c:251:1: enter_function: entry to 'do_upload'
guestfs-tools-1.53.9/common/edit/file-edit.c:266:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/edit/file-edit.c:274:13: branch_false: ...to here
guestfs-tools-1.53.9/common/edit/file-edit.c:274:13: call_function: calling 'generate_random_name' from 'do_upload'
guestfs-tools-1.53.9/common/edit/file-edit.c:274:13: return_function: returning to 'do_upload' from 'generate_random_name'
guestfs-tools-1.53.9/common/edit/file-edit.c:326:6: danger: 'generate_random_name(guestfs_realpath(g, fn))' leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
guestfs-tools-1.53.9/common/mlcustomize/../edit/file-edit.c:326:6: warning[-Wanalyzer-malloc-leak]: leak of ‘generate_random_name(guestfs_realpath(g, fn))’
guestfs-tools-1.53.9/common/mlcustomize/../edit/file-edit.c:251:1: enter_function: entry to ‘do_upload’
guestfs-tools-1.53.9/common/mlcustomize/../edit/file-edit.c:266:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mlcustomize/../edit/file-edit.c:274:13: branch_false: ...to here
guestfs-tools-1.53.9/common/mlcustomize/../edit/file-edit.c:274:13: call_function: calling ‘generate_random_name’ from ‘do_upload’
guestfs-tools-1.53.9/common/mlcustomize/../edit/file-edit.c:274:13: return_function: returning to ‘do_upload’ from ‘generate_random_name’
guestfs-tools-1.53.9/common/mlcustomize/../edit/file-edit.c:326:6: danger: ‘generate_random_name(guestfs_realpath(g, fn))’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:247:3: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:190:1: enter_function: entry to ‘guestfs_int_pcre_matches’
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:192:3: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:192:3: branch_false: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:198:7: acquire_memory: allocated here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:199:6: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:205:16: branch_false: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:206:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:210:3: branch_false: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:214:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:220:23: branch_false: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:222:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:232:3: branch_false: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:232:3: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:239:6: branch_true: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:239:6: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:240:12: branch_true: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:241:5: call_function: inlined call to ‘free_last_match’ from ‘guestfs_int_pcre_matches’
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:242:5: branch_false: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:247:3: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:247:3: branch_true: ...to here
guestfs-tools-1.53.9/common/mlpcre/pcre-c.c:247:3: danger: ‘m’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
guestfs-tools-1.53.9/common/mltools/../options/decrypt.c:96:27: warning[-Wanalyzer-malloc-leak]: leak of ‘make_mapname(mountable)’
guestfs-tools-1.53.9/common/mltools/../options/decrypt.c:201:1: enter_function: entry to ‘inspect_do_decrypt’
guestfs-tools-1.53.9/common/mltools/../options/decrypt.c:207:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/decrypt.c:210:17: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/decrypt.c:210:17: call_function: calling ‘decrypt_mountables’ from ‘inspect_do_decrypt’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
guestfs-tools-1.53.9/common/mltools/../options/keys.c:99:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘infp’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:130:1: enter_function: entry to ‘get_keys’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:148:6: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:153:6: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:188:6: branch_true: following ‘true’ branch (when ‘match == r’)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:190:9: branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:190:9: call_function: calling ‘read_key’ from ‘get_keys’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
guestfs-tools-1.53.9/common/mltools/../options/keys.c:99:10: warning[-Wanalyzer-malloc-leak]: leak of ‘infp’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:130:1: enter_function: entry to ‘get_keys’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:148:6: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:153:6: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:188:6: branch_true: following ‘true’ branch (when ‘match == r’)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:190:9: branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:190:9: call_function: calling ‘read_key’ from ‘get_keys’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
guestfs-tools-1.53.9/common/mltools/../options/keys.c:110:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:130:1: enter_function: entry to ‘get_keys’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:148:6: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:153:6: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:153:6: branch_true: following ‘true’ branch (when ‘ks’ is non-NULL)...
branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:154:17: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:155:36: branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:174:13: call_function: calling ‘read_first_line_from_file’ from ‘get_keys’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
guestfs-tools-1.53.9/common/mltools/../options/keys.c:110:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:130:1: enter_function: entry to ‘get_keys’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:148:6: branch_false: following ‘false’ branch (when ‘r’ is non-NULL)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:153:6: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:153:6: branch_true: following ‘true’ branch (when ‘ks’ is non-NULL)...
branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:154:17: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:155:36: branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:174:13: call_function: calling ‘read_first_line_from_file’ from ‘get_keys’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
guestfs-tools-1.53.9/common/mltools/../options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of ‘key.<Uf320>.string.s’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:218:1: enter_function: entry to ‘key_store_add_from_selector’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:225:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:230:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:233:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:237:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:242:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:246:34: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:246:20: acquire_memory: allocated here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:247:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: call_function: calling ‘key_store_import_key’ from ‘key_store_add_from_selector’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: return_function: returning to ‘key_store_add_from_selector’ from ‘key_store_import_key’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:266:1: danger: ‘key.<Uf320>.string.s’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
guestfs-tools-1.53.9/common/mltools/../options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of ‘key.id’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:218:1: enter_function: entry to ‘key_store_add_from_selector’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:225:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:230:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:232:12: acquire_memory: allocated here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:233:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:237:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:242:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:246:34: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:247:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: call_function: calling ‘key_store_import_key’ from ‘key_store_add_from_selector’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: return_function: returning to ‘key_store_add_from_selector’ from ‘key_store_import_key’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:266:1: danger: ‘key.id’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
guestfs-tools-1.53.9/common/mltools/../options/keys.c:380:24: warning[-Wanalyzer-malloc-leak]: leak of ‘key_store_import_key(ks, & key)’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:218:1: enter_function: entry to ‘key_store_add_from_selector’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:225:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:230:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:233:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:237:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:240:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:249:14: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:249:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:258:14: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:258:13: branch_true: following ‘true’ branch (when the strings are equal)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:259:5: branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:260:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: call_function: calling ‘key_store_import_key’ from ‘key_store_add_from_selector’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: return_function: returning to ‘key_store_add_from_selector’ from ‘key_store_import_key’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:380:24: danger: ‘key_store_import_key(ks, & key)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
guestfs-tools-1.53.9/common/mltools/../options/keys.c:389:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:218:1: enter_function: entry to ‘key_store_add_from_selector’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:225:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:230:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:233:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:237:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:240:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:249:14: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:249:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:258:14: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:258:13: branch_true: following ‘true’ branch (when the strings are equal)...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:259:5: branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:260:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: call_function: calling ‘key_store_import_key’ from ‘key_store_add_from_selector’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:265:10: return_function: returning to ‘key_store_add_from_selector’ from ‘key_store_import_key’
guestfs-tools-1.53.9/common/mltools/../options/keys.c:389:10: danger: ‘<unknown>’ leaks here; was allocated at [(24)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/23)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
guestfs-tools-1.53.9/common/mltools/../options/uri.c:228:17: warning[-Wanalyzer-malloc-leak]: leak of ‘query_get(xmlParseURI(arg), "socket")’
guestfs-tools-1.53.9/common/mltools/../options/uri.c:110:1: enter_function: entry to ‘parse’
guestfs-tools-1.53.9/common/mltools/../options/uri.c:118:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/uri.c:128:7: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/../options/uri.c:128:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/../options/uri.c:135:12: call_function: calling ‘query_get’ from ‘parse’
guestfs-tools-1.53.9/common/mltools/../options/uri.c:135:12: return_function: returning to ‘parse’ from ‘query_get’
guestfs-tools-1.53.9/common/mltools/../options/uri.c:228:17: danger: ‘query_get(xmlParseURI(arg), "socket")’ leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
guestfs-tools-1.53.9/common/mltools/getopt-c.c:57:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
guestfs-tools-1.53.9/common/mltools/getopt-c.c:205:1: enter_function: entry to ‘guestfs_int_mllib_getopt_parse’
guestfs-tools-1.53.9/common/mltools/getopt-c.c:207:3: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/getopt-c.c:207:3: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/getopt-c.c:214:43: release_memory: ‘longopts’ is NULL
guestfs-tools-1.53.9/common/mltools/getopt-c.c:221:6: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/common/mltools/getopt-c.c:222:5: branch_true: ...to here
guestfs-tools-1.53.9/common/mltools/getopt-c.c:214:43: call_function: calling ‘cleanup_option_list’ from ‘guestfs_int_mllib_getopt_parse’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def51]
guestfs-tools-1.53.9/common/mltools/getopt-c.c:338:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘specv_index’
guestfs-tools-1.53.9/common/mltools/getopt-c.c:207:3: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/getopt-c.c:207:3: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/getopt-c.c:221:6: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/getopt-c.c:233:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/common/mltools/getopt-c.c:235:14: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/getopt-c.c:236:6: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/getopt-c.c:322:8: branch_false: following ‘false’ branch (when ‘c != -1’)...
guestfs-tools-1.53.9/common/mltools/getopt-c.c:324:5: branch_false: ...to here
guestfs-tools-1.53.9/common/mltools/getopt-c.c:338:13: danger: use of uninitialized value ‘specv_index’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
guestfs-tools-1.53.9/common/options/decrypt.c:96:27: warning[-Wanalyzer-malloc-leak]: leak of 'make_mapname(mountable)'
guestfs-tools-1.53.9/common/options/decrypt.c:201:1: enter_function: entry to 'inspect_do_decrypt'
guestfs-tools-1.53.9/common/options/decrypt.c:207:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/decrypt.c:210:17: branch_false: ...to here
guestfs-tools-1.53.9/common/options/decrypt.c:210:17: call_function: calling 'decrypt_mountables' from 'inspect_do_decrypt'
Error: CPPCHECK_WARNING (CWE-476): [#def53]
guestfs-tools-1.53.9/common/options/decrypt.c:113: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mapname
Error: CPPCHECK_WARNING (CWE-457): [#def54]
guestfs-tools-1.53.9/common/options/decrypt.c:178: warning[uninitvar]: Uninitialized variable: r
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
guestfs-tools-1.53.9/common/options/keys.c:99:10: warning[-Wanalyzer-file-leak]: leak of FILE 'infp'
guestfs-tools-1.53.9/common/options/keys.c:130:1: enter_function: entry to 'get_keys'
guestfs-tools-1.53.9/common/options/keys.c:148:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
guestfs-tools-1.53.9/common/options/keys.c:153:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:188:6: branch_true: following 'true' branch (when 'match == r')...
guestfs-tools-1.53.9/common/options/keys.c:190:9: branch_true: ...to here
guestfs-tools-1.53.9/common/options/keys.c:190:9: call_function: calling 'read_key' from 'get_keys'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
guestfs-tools-1.53.9/common/options/keys.c:99:10: warning[-Wanalyzer-malloc-leak]: leak of 'infp'
guestfs-tools-1.53.9/common/options/keys.c:130:1: enter_function: entry to 'get_keys'
guestfs-tools-1.53.9/common/options/keys.c:148:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
guestfs-tools-1.53.9/common/options/keys.c:153:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:188:6: branch_true: following 'true' branch (when 'match == r')...
guestfs-tools-1.53.9/common/options/keys.c:190:9: branch_true: ...to here
guestfs-tools-1.53.9/common/options/keys.c:190:9: call_function: calling 'read_key' from 'get_keys'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
guestfs-tools-1.53.9/common/options/keys.c:110:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
guestfs-tools-1.53.9/common/options/keys.c:130:1: enter_function: entry to 'get_keys'
guestfs-tools-1.53.9/common/options/keys.c:148:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
guestfs-tools-1.53.9/common/options/keys.c:153:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:153:6: branch_true: following 'true' branch (when 'ks' is non-NULL)...
branch_true: ...to here
guestfs-tools-1.53.9/common/options/keys.c:154:17: branch_true: following 'true' branch...
guestfs-tools-1.53.9/common/options/keys.c:155:36: branch_true: ...to here
guestfs-tools-1.53.9/common/options/keys.c:174:13: call_function: calling 'read_first_line_from_file' from 'get_keys'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
guestfs-tools-1.53.9/common/options/keys.c:110:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
guestfs-tools-1.53.9/common/options/keys.c:130:1: enter_function: entry to 'get_keys'
guestfs-tools-1.53.9/common/options/keys.c:148:6: branch_false: following 'false' branch (when 'r' is non-NULL)...
guestfs-tools-1.53.9/common/options/keys.c:153:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:153:6: branch_true: following 'true' branch (when 'ks' is non-NULL)...
branch_true: ...to here
guestfs-tools-1.53.9/common/options/keys.c:154:17: branch_true: following 'true' branch...
guestfs-tools-1.53.9/common/options/keys.c:155:36: branch_true: ...to here
guestfs-tools-1.53.9/common/options/keys.c:174:13: call_function: calling 'read_first_line_from_file' from 'get_keys'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
guestfs-tools-1.53.9/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.<U 320>.string.s'
guestfs-tools-1.53.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:242:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:246:34: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:246:20: acquire_memory: allocated here
guestfs-tools-1.53.9/common/options/keys.c:247:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
guestfs-tools-1.53.9/common/options/keys.c:266:1: danger: 'key.<U 320>.string.s' leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
guestfs-tools-1.53.9/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.<Ud320>.string.s'
guestfs-tools-1.53.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:242:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:246:34: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:246:20: acquire_memory: allocated here
guestfs-tools-1.53.9/common/options/keys.c:247:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
guestfs-tools-1.53.9/common/options/keys.c:266:1: danger: 'key.<Ud320>.string.s' leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
guestfs-tools-1.53.9/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.id'
guestfs-tools-1.53.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:232:12: acquire_memory: allocated here
guestfs-tools-1.53.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:242:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:246:34: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:247:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
guestfs-tools-1.53.9/common/options/keys.c:266:1: danger: 'key.id' leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
guestfs-tools-1.53.9/common/options/keys.c:380:24: warning[-Wanalyzer-malloc-leak]: leak of 'key_store_import_key(ks, & key)'
guestfs-tools-1.53.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:240:6: branch_false: following 'false' branch (when the strings are non-equal)...
guestfs-tools-1.53.9/common/options/keys.c:249:14: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:249:13: branch_false: following 'false' branch (when the strings are non-equal)...
guestfs-tools-1.53.9/common/options/keys.c:258:14: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:258:13: branch_true: following 'true' branch (when the strings are equal)...
guestfs-tools-1.53.9/common/options/keys.c:259:5: branch_true: ...to here
guestfs-tools-1.53.9/common/options/keys.c:260:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
guestfs-tools-1.53.9/common/options/keys.c:380:24: danger: 'key_store_import_key(ks, & key)' leaks here; was allocated at [(22)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
guestfs-tools-1.53.9/common/options/keys.c:389:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
guestfs-tools-1.53.9/common/options/keys.c:218:1: enter_function: entry to 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:225:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:227:17: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:230:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:232:12: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:233:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:237:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:240:7: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:240:6: branch_false: following 'false' branch (when the strings are non-equal)...
guestfs-tools-1.53.9/common/options/keys.c:249:14: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:249:13: branch_false: following 'false' branch (when the strings are non-equal)...
guestfs-tools-1.53.9/common/options/keys.c:258:14: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:258:13: branch_true: following 'true' branch (when the strings are equal)...
guestfs-tools-1.53.9/common/options/keys.c:259:5: branch_true: ...to here
guestfs-tools-1.53.9/common/options/keys.c:260:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/keys.c:265:10: branch_false: ...to here
guestfs-tools-1.53.9/common/options/keys.c:265:10: call_function: calling 'key_store_import_key' from 'key_store_add_from_selector'
guestfs-tools-1.53.9/common/options/keys.c:265:10: return_function: returning to 'key_store_add_from_selector' from 'key_store_import_key'
guestfs-tools-1.53.9/common/options/keys.c:389:10: danger: '<unknown>' leaks here; was allocated at [(24)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/23)
Error: CPPCHECK_WARNING (CWE-476): [#def64]
guestfs-tools-1.53.9/common/options/options.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def65]
guestfs-tools-1.53.9/common/options/options.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def66]
guestfs-tools-1.53.9/common/options/options.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
guestfs-tools-1.53.9/common/options/uri.c:228:17: warning[-Wanalyzer-malloc-leak]: leak of 'query_get(xmlParseURI(arg), "socket")'
guestfs-tools-1.53.9/common/options/uri.c:110:1: enter_function: entry to 'parse'
guestfs-tools-1.53.9/common/options/uri.c:118:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/uri.c:128:7: branch_false: ...to here
guestfs-tools-1.53.9/common/options/uri.c:128:6: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/options/uri.c:135:12: call_function: calling 'query_get' from 'parse'
guestfs-tools-1.53.9/common/options/uri.c:135:12: return_function: returning to 'parse' from 'query_get'
guestfs-tools-1.53.9/common/options/uri.c:228:17: danger: 'query_get(xmlParseURI(arg), "socket")' leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
Error: CPPCHECK_WARNING (CWE-476): [#def68]
guestfs-tools-1.53.9/common/parallel/parallel.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: thread_data
Error: CPPCHECK_WARNING (CWE-476): [#def69]
guestfs-tools-1.53.9/common/parallel/parallel.c:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: thread_data
Error: CPPCHECK_WARNING (CWE-476): [#def70]
guestfs-tools-1.53.9/common/parallel/parallel.c:141: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: thread_data
Error: CPPCHECK_WARNING (CWE-476): [#def71]
guestfs-tools-1.53.9/common/parallel/parallel.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: thread_data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
guestfs-tools-1.53.9/common/parallel/parallel.c:181:24: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
guestfs-tools-1.53.9/common/parallel/parallel.c:193:8: branch_false: following 'false' branch (when 'err == 0')...
guestfs-tools-1.53.9/common/parallel/parallel.c:198:9: branch_false: ...to here
guestfs-tools-1.53.9/common/parallel/parallel.c:200:8: branch_false: following 'false' branch (when 'err == 0')...
guestfs-tools-1.53.9/common/parallel/parallel.c:206:9: branch_false: ...to here
guestfs-tools-1.53.9/common/parallel/parallel.c:206:8: branch_false: following 'false' branch...
guestfs-tools-1.53.9/common/parallel/parallel.c:209:9: branch_false: ...to here
guestfs-tools-1.53.9/common/parallel/parallel.c:213:10: acquire_memory: allocated here
guestfs-tools-1.53.9/common/parallel/parallel.c:214:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
guestfs-tools-1.53.9/common/parallel/parallel.c:221:9: branch_false: ...to here
guestfs-tools-1.53.9/common/parallel/parallel.c:181:24: danger: 'fp' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def73]
guestfs-tools-1.53.9/common/windows/windows.c:115: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def74]
guestfs-tools-1.53.9/df/main.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def75]
guestfs-tools-1.53.9/df/main.c:229: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def76]
guestfs-tools-1.53.9/df/main.c:230: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def77]
guestfs-tools-1.53.9/df/main.c:238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def78]
guestfs-tools-1.53.9/df/main.c:239: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def79]
guestfs-tools-1.53.9/df/main.c:240: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def80]
guestfs-tools-1.53.9/df/main.c:348: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: name
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
guestfs-tools-1.53.9/df/main.c:384:7: warning[-Wanalyzer-malloc-leak]: leak of ‘make_display_name(drvs)’
guestfs-tools-1.53.9/df/main.c:105:1: enter_function: entry to ‘main’
guestfs-tools-1.53.9/df/main.c:144:6: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/df/main.c:221:6: branch_true: following ‘true’ branch...
branch_true: ...to here
guestfs-tools-1.53.9/df/main.c:222:12: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/df/main.c:223:23: branch_true: ...to here
guestfs-tools-1.53.9/df/main.c:223:10: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/df/main.c:224:11: branch_false: ...to here
guestfs-tools-1.53.9/df/main.c:236:12: branch_false: following ‘false’ branch (when ‘drv’ is non-NULL)...
guestfs-tools-1.53.9/df/main.c:238:9: branch_false: ...to here
guestfs-tools-1.53.9/df/main.c:252:3: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/df/main.c:253:3: branch_true: ...to here
guestfs-tools-1.53.9/df/main.c:253:3: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/df/main.c:256:7: branch_true: ...to here
guestfs-tools-1.53.9/df/main.c:256:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/df/main.c:259:3: branch_false: ...to here
guestfs-tools-1.53.9/df/main.c:259:3: branch_true: following ‘true’ branch (when ‘format_consumed != 0’)...
guestfs-tools-1.53.9/df/main.c:260:3: branch_true: ...to here
guestfs-tools-1.53.9/df/main.c:260:3: branch_true: following ‘true’ branch (when ‘blocksize_consumed != 0’)...
guestfs-tools-1.53.9/df/main.c:265:7: branch_true: ...to here
guestfs-tools-1.53.9/df/main.c:273:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/df/main.c:285:24: branch_false: ...to here
guestfs-tools-1.53.9/df/main.c:290:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/df/main.c:293:5: branch_false: ...to here
guestfs-tools-1.53.9/df/main.c:296:12: call_function: calling ‘make_display_name’ from ‘main’
guestfs-tools-1.53.9/df/main.c:296:12: return_function: returning to ‘main’ from ‘make_display_name’
guestfs-tools-1.53.9/df/main.c:384:7: danger: ‘make_display_name(drvs)’ leaks here; was allocated at [(45)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/44)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
guestfs-tools-1.53.9/df/main.c:404:8: warning[-Wanalyzer-malloc-leak]: leak of ‘single_drive_display_name(drvs)’
guestfs-tools-1.53.9/df/main.c:377:1: enter_function: entry to ‘make_display_name’
guestfs-tools-1.53.9/df/main.c:381:3: branch_true: following ‘true’ branch (when ‘drvs’ is non-NULL)...
guestfs-tools-1.53.9/df/main.c:384:7: branch_true: ...to here
guestfs-tools-1.53.9/df/main.c:384:6: branch_false: following ‘false’ branch...
branch_false: ...to here
guestfs-tools-1.53.9/df/main.c:395:12: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/df/main.c:397:7: branch_true: ...to here
guestfs-tools-1.53.9/df/main.c:400:11: call_function: calling ‘single_drive_display_name’ from ‘make_display_name’
guestfs-tools-1.53.9/df/main.c:400:11: return_function: returning to ‘make_display_name’ from ‘single_drive_display_name’
guestfs-tools-1.53.9/df/main.c:404:8: danger: ‘single_drive_display_name(drvs)’ leaks here; was allocated at [(20)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/19)
Error: CPPCHECK_WARNING (CWE-476): [#def83]
guestfs-tools-1.53.9/edit/edit.c:198: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mp
Error: CPPCHECK_WARNING (CWE-476): [#def84]
guestfs-tools-1.53.9/edit/edit.c:233: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def85]
guestfs-tools-1.53.9/edit/edit.c:234: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def86]
guestfs-tools-1.53.9/edit/edit.c:235: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def87]
guestfs-tools-1.53.9/edit/edit.c:243: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def88]
guestfs-tools-1.53.9/edit/edit.c:244: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def89]
guestfs-tools-1.53.9/edit/edit.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def90]
guestfs-tools-1.53.9/inspector/inspector.c:233: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def91]
guestfs-tools-1.53.9/inspector/inspector.c:234: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def92]
guestfs-tools-1.53.9/inspector/inspector.c:235: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def93]
guestfs-tools-1.53.9/inspector/inspector.c:243: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def94]
guestfs-tools-1.53.9/inspector/inspector.c:244: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-476): [#def95]
guestfs-tools-1.53.9/inspector/inspector.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: drv
Error: CPPCHECK_WARNING (CWE-401): [#def96]
guestfs-tools-1.53.9/make-fs/make-fs.c:303: error[memleak]: Memory leak: buffer
Error: CPPCHECK_WARNING (CWE-401): [#def97]
guestfs-tools-1.53.9/make-fs/make-fs.c:308: error[memleak]: Memory leak: buffer
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
guestfs-tools-1.53.9/make-fs/make-fs.c:343:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
guestfs-tools-1.53.9/make-fs/make-fs.c:296:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:301:7: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:301:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:305:9: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:306:6: branch_true: following ‘true’ branch (when ‘pid == -1’)...
guestfs-tools-1.53.9/make-fs/make-fs.c:307:5: branch_true: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:343:1: danger: ‘fd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
guestfs-tools-1.53.9/make-fs/make-fs.c:343:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
guestfs-tools-1.53.9/make-fs/make-fs.c:296:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:301:7: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:301:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:305:9: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:306:6: branch_true: following ‘true’ branch (when ‘pid == -1’)...
guestfs-tools-1.53.9/make-fs/make-fs.c:307:5: branch_true: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:343:1: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
guestfs-tools-1.53.9/make-fs/make-fs.c:356:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
guestfs-tools-1.53.9/make-fs/make-fs.c:354:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:358:14: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:359:6: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:360:5: branch_true: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:356:12: danger: ‘fd[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
guestfs-tools-1.53.9/make-fs/make-fs.c:356:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
guestfs-tools-1.53.9/make-fs/make-fs.c:354:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:358:14: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:359:6: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:360:5: branch_true: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:356:12: danger: ‘fd[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
guestfs-tools-1.53.9/make-fs/make-fs.c:442:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tmpfile, "r")’
guestfs-tools-1.53.9/make-fs/make-fs.c:399:1: enter_function: entry to ‘estimate_input’
guestfs-tools-1.53.9/make-fs/make-fs.c:410:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:414:8: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:415:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:419:3: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:421:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:425:7: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:425:6: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:426:17: branch_true: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:427:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:432:5: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:439:9: call_function: calling ‘exec_command’ from ‘estimate_input’
guestfs-tools-1.53.9/make-fs/make-fs.c:439:9: return_function: returning to ‘estimate_input’ from ‘exec_command’
guestfs-tools-1.53.9/make-fs/make-fs.c:439:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:442:10: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:442:10: acquire_resource: opened here
guestfs-tools-1.53.9/make-fs/make-fs.c:442:10: danger: ‘fopen(tmpfile, "r")’ leaks here; was opened at [(25)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
guestfs-tools-1.53.9/make-fs/make-fs.c:442:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tmpfile, "r")’
guestfs-tools-1.53.9/make-fs/make-fs.c:399:1: enter_function: entry to ‘estimate_input’
guestfs-tools-1.53.9/make-fs/make-fs.c:410:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:414:8: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:415:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:419:3: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:421:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:425:7: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:425:6: branch_true: following ‘true’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:426:17: branch_true: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:427:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:432:5: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:439:9: call_function: calling ‘exec_command’ from ‘estimate_input’
guestfs-tools-1.53.9/make-fs/make-fs.c:439:9: return_function: returning to ‘estimate_input’ from ‘exec_command’
guestfs-tools-1.53.9/make-fs/make-fs.c:439:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:442:10: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:442:10: acquire_memory: allocated here
guestfs-tools-1.53.9/make-fs/make-fs.c:442:10: danger: ‘fopen(tmpfile, "r")’ leaks here; was allocated at [(25)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/24)
Error: CPPCHECK_WARNING (CWE-404): [#def104]
guestfs-tools-1.53.9/make-fs/make-fs.c:449: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def105]
guestfs-tools-1.53.9/make-fs/make-fs.c:455: error[resourceLeak]: Resource leak: fp
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
guestfs-tools-1.53.9/make-fs/make-fs.c:467:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tmpfile, "r")’
guestfs-tools-1.53.9/make-fs/make-fs.c:399:1: enter_function: entry to ‘estimate_input’
guestfs-tools-1.53.9/make-fs/make-fs.c:410:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:414:8: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:415:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:419:3: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:421:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:425:7: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:425:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:459:5: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:464:9: call_function: calling ‘exec_command’ from ‘estimate_input’
guestfs-tools-1.53.9/make-fs/make-fs.c:464:9: return_function: returning to ‘estimate_input’ from ‘exec_command’
guestfs-tools-1.53.9/make-fs/make-fs.c:464:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:467:10: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:467:10: acquire_resource: opened here
guestfs-tools-1.53.9/make-fs/make-fs.c:467:10: danger: ‘fopen(tmpfile, "r")’ leaks here; was opened at [(17)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
guestfs-tools-1.53.9/make-fs/make-fs.c:467:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tmpfile, "r")’
guestfs-tools-1.53.9/make-fs/make-fs.c:399:1: enter_function: entry to ‘estimate_input’
guestfs-tools-1.53.9/make-fs/make-fs.c:410:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:414:8: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:415:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:419:3: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:421:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:425:7: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:425:6: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:459:5: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:464:9: call_function: calling ‘exec_command’ from ‘estimate_input’
guestfs-tools-1.53.9/make-fs/make-fs.c:464:9: return_function: returning to ‘estimate_input’ from ‘exec_command’
guestfs-tools-1.53.9/make-fs/make-fs.c:464:8: branch_false: following ‘false’ branch...
guestfs-tools-1.53.9/make-fs/make-fs.c:467:10: branch_false: ...to here
guestfs-tools-1.53.9/make-fs/make-fs.c:467:10: acquire_memory: allocated here
guestfs-tools-1.53.9/make-fs/make-fs.c:467:10: danger: ‘fopen(tmpfile, "r")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/16)
Error: CPPCHECK_WARNING (CWE-404): [#def108]
guestfs-tools-1.53.9/make-fs/make-fs.c:474: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def109]
guestfs-tools-1.53.9/make-fs/make-fs.c:484: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def110]
guestfs-tools-1.53.9/make-fs/make-fs.c:490: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def111]
guestfs-tools-1.53.9/make-fs/make-fs.c:521: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def112]
guestfs-tools-1.53.9/make-fs/make-fs.c:526: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def113]
guestfs-tools-1.53.9/make-fs/make-fs.c:537: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-401): [#def114]
guestfs-tools-1.53.9/make-fs/make-fs.c:678: error[memleak]: Memory leak: output
Error: CPPCHECK_WARNING (CWE-401): [#def115]
guestfs-tools-1.53.9/make-fs/make-fs.c:733: error[memleak]: Memory leak: output
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-86.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | guestfs-tools-1.53.9-1.fc43 |
store-results-to | /tmp/tmpwfdm_s26/guestfs-tools-1.53.9-1.fc43.tar.xz |
time-created | 2025-04-25 12:59:47 |
time-finished | 2025-04-25 13:02:36 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpwfdm_s26/guestfs-tools-1.53.9-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpwfdm_s26/guestfs-tools-1.53.9-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |