guestfs-tools-1.53.4-1.fc42
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c: scope_hint: In function ‘yyparse’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:507:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:127:40: note: in definition of macro ‘YY_CAST’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:493:25: note: in expansion of macro ‘YYMALLOC’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1232:20: note: in expansion of macro ‘YYSTACK_ALLOC’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1305:17: note: in expansion of macro ‘YYTRANSLATE’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:127:40: note: in definition of macro ‘YY_CAST’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:493:25: note: in expansion of macro ‘YYMALLOC’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1232:20: note: in expansion of macro ‘YYSTACK_ALLOC’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:555:9: note: in expansion of macro ‘YYCOPY’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1235:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:127:40: note: in definition of macro ‘YY_CAST’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:493:25: note: in expansion of macro ‘YYMALLOC’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1232:20: note: in expansion of macro ‘YYSTACK_ALLOC’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:570:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:555:9: note: in expansion of macro ‘YYCOPY’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1235:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:555:9: note: in expansion of macro ‘YYCOPY’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1235:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:555:9: note: in expansion of macro ‘YYCOPY’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1235:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.y: scope_hint: In function ‘concat_newline’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.y:59:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1305:17: note: in expansion of macro ‘YYTRANSLATE’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.y:124:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parse.c:1305:17: note: in expansion of macro ‘YYTRANSLATE’
Error: CPPCHECK_WARNING (CWE-415): [#def5]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-parser-c.c:69: error[doubleFree]: Resource handle 'in' freed twice.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c: scope_hint: In function ‘yy_create_buffer’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c:1550:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c: scope_hint: In function ‘yy_create_buffer’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c: scope_hint: In function ‘yy_init_buffer’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c:1592:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c:1402:41: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c: scope_hint: In function ‘yy_scan_buffer’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c:1810:38: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/builder/index-scan.c: scope_hint: In function ‘yy_scan_buffer’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/filesystems.c: scope_hint: In function ‘do_output_blockdevs’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/filesystems.c:768:10: warning[-Wanalyzer-malloc-leak]: leak of ‘no_parents()’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/filesystems.c:797:5: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_of_md(*<unknown>)’
Error: CPPCHECK_WARNING (CWE-401): [#def11]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/tail.c:286: error[memleak]: Memory leak: file
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/tail.c: scope_hint: In function ‘do_tail’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/tail.c:349:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘file’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/tail.c: scope_hint: In function ‘do_tail’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/tail.c:368:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘file’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/cat/tail.c: scope_hint: In function ‘do_tail’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/edit/file-edit.c: scope_hint: In function 'do_upload'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/edit/file-edit.c:326:6: warning[-Wanalyzer-malloc-leak]: leak of 'generate_random_name(guestfs_realpath(g, fn))'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/edit/file-edit.c:40: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/edit/file-edit.c: scope_hint: In function ‘do_upload’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/edit/file-edit.c:326:6: warning[-Wanalyzer-malloc-leak]: leak of ‘generate_random_name(guestfs_realpath(g, fn))’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/edit/file-edit.c:40: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/mltools/getopt-c.c: scope_hint: In function ‘cleanup_option_list’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/mltools/getopt-c.c:57:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/mltools/getopt-c.c:38: included_from: Included from here.
/usr/lib64/ocaml/caml/memory.h:290:3: note: in expansion of macro ‘CAMLparam0’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/mltools/getopt-c.c:207:3: note: in expansion of macro ‘CAMLparam4’
/usr/lib64/ocaml/caml/memory.h:290:3: note: in expansion of macro ‘CAMLparam0’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/mltools/getopt-c.c:207:3: note: in expansion of macro ‘CAMLparam4’
Error: CPPCHECK_WARNING (CWE-415): [#def17]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/mlvisit/visit-c.c:101: error[doubleFree]: Memory pointed to by 'dir' is freed twice.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c: scope_hint: In function 'decrypt_mountables'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:96:27: warning[-Wanalyzer-malloc-leak]: leak of 'make_mapname(mountable)'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/utils/guestfs-utils.h:38: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/options.h:26: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:39: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:143:9: note: in expansion of macro 'STREQ'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:32: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c: scope_hint: In function ‘decrypt_mountables’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:96:27: warning[-Wanalyzer-malloc-leak]: leak of ‘make_mapname(mountable)’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/utils/guestfs-utils.h:38: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/options.h:26: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:39: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:143:9: note: in expansion of macro ‘STREQ’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:32: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-457): [#def20]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/decrypt.c:178: warning[uninitvar]: Uninitialized variable: r
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function 'read_key'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:99:10: warning[-Wanalyzer-file-leak]: leak of FILE 'infp'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:27: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:63:21: note: in expansion of macro '_'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function ‘read_key’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:99:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘infp’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:27: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:63:21: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:99:10: warning[-Wanalyzer-malloc-leak]: leak of 'infp'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:63:21: note: in expansion of macro '_'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:99:10: warning[-Wanalyzer-malloc-leak]: leak of ‘infp’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:63:21: note: in expansion of macro ‘_’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function 'read_first_line_from_file'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:110:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function ‘read_first_line_from_file’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:110:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:110:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:110:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function 'key_store_add_from_selector'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.<U6130>.string.s'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/utils/guestfs-utils.h:38: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/options.h:26: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:34: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro 'STREQ'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function 'key_store_add_from_selector'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.<Ud130>.string.s'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/utils/guestfs-utils.h:38: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/options.h:26: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:34: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro 'STREQ'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of 'key.id'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro 'STREQ'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function ‘key_store_add_from_selector’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of ‘key.<U1130>.string.s’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/utils/guestfs-utils.h:38: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/options.h:26: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:34: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro ‘STREQ’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:266:1: warning[-Wanalyzer-malloc-leak]: leak of ‘key.id’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro ‘STREQ’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function 'key_store_add_from_selector'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:380:26: warning[-Wanalyzer-malloc-leak]: leak of 'key_store_import_key(ks, & key)'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro 'STREQ'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:249:14: note: in expansion of macro 'STREQ'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:258:14: note: in expansion of macro 'STREQ'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c: scope_hint: In function ‘key_store_add_from_selector’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:380:26: warning[-Wanalyzer-malloc-leak]: leak of ‘key_store_import_key(ks, & key)’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro ‘STREQ’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:249:14: note: in expansion of macro ‘STREQ’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:258:14: note: in expansion of macro ‘STREQ’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:389:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro 'STREQ'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:249:14: note: in expansion of macro 'STREQ'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:258:14: note: in expansion of macro 'STREQ'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:389:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:29: note: in definition of macro ‘STREQ’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:249:14: note: in expansion of macro ‘STREQ’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/keys.c:258:14: note: in expansion of macro ‘STREQ’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/parallel/parallel.c: scope_hint: In function 'worker_thread'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/parallel/parallel.c:181:24: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c: scope_hint: In function ‘main’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c:384:11: warning[-Wanalyzer-malloc-leak]: leak of ‘make_display_name(drvs)’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c:32: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c:43: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c:259:3: note: in expansion of macro ‘CHECK_OPTION_format_consumed’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c:259:3: note: in expansion of macro ‘CHECK_OPTION_format_consumed’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c:260:3: note: in expansion of macro ‘CHECK_OPTION_blocksize_consumed’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c:260:3: note: in expansion of macro ‘CHECK_OPTION_blocksize_consumed’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c: scope_hint: In function ‘make_display_name’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/df/main.c:404:8: warning[-Wanalyzer-malloc-leak]: leak of ‘single_drive_display_name(drvs)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/utils/guestfs-utils.h:38: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/uri.c:40: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/uri.c: scope_hint: In function 'parse'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:21: warning[-Wanalyzer-malloc-leak]: leak of 'query_get(xmlParseURI(arg), "socket")'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/uri.c:228:17: note: in expansion of macro 'STREQ'
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/uri.c:228:17: note: in expansion of macro 'STREQ'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/utils/guestfs-utils.h:38: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/uri.c:40: included_from: Included from here.
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/uri.c: scope_hint: In function ‘parse’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/lib/guestfs-internal-all.h:50:21: warning[-Wanalyzer-malloc-leak]: leak of ‘query_get(xmlParseURI(arg), "socket")’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/uri.c:228:17: note: in expansion of macro ‘STREQ’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/common/options/uri.c:228:17: note: in expansion of macro ‘STREQ’
Error: CPPCHECK_WARNING (CWE-401): [#def43]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:303: error[memleak]: Memory leak: buffer
Error: CPPCHECK_WARNING (CWE-401): [#def44]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:308: error[memleak]: Memory leak: buffer
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c: scope_hint: In function ‘exec_command_count_output’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:343:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:343:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:356:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c: scope_hint: In function ‘bg_command’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:356:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c: scope_hint: In function ‘estimate_input’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:442:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tmpfile, "r")’
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:35: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:442:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tmpfile, "r")’
Error: CPPCHECK_WARNING (CWE-404): [#def51]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:449: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def52]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:455: error[resourceLeak]: Resource leak: fp
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:467:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(tmpfile, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:467:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(tmpfile, "r")’
Error: CPPCHECK_WARNING (CWE-404): [#def55]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:474: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def56]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:484: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def57]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:490: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def58]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:521: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def59]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:526: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-404): [#def60]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:537: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-401): [#def61]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:678: error[memleak]: Memory leak: output
Error: CPPCHECK_WARNING (CWE-401): [#def62]
guestfs-tools-1.53.4-build/guestfs-tools-1.53.4/make-fs/make-fs.c:733: error[memleak]: Memory leak: output
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
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-172.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | guestfs-tools-1.53.4-1.fc42 |
store-results-to | /tmp/tmpaeodng0m/guestfs-tools-1.53.4-1.fc42.tar.xz |
time-created | 2024-11-13 00:10:06 |
time-finished | 2024-11-13 00:13:09 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpaeodng0m/guestfs-tools-1.53.4-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpaeodng0m/guestfs-tools-1.53.4-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |