nbdkit-1.41.8-1.fc42
List of Findings
Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/share/doc/nbdkit-devel/assemble.sh:18:11: warning[SC2154]: tmpdir is referenced but not assigned.
Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/usr/share/doc/nbdkit-devel/example.sh:45:11: warning[SC2154]: tmpdir is referenced but not assigned.
Error: CPPCHECK_WARNING (CWE-401): [#def3]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/allocators/zstd.c:328: error[memleakOnRealloc]: Common realloc mistake: 'page' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/tvdiff.h:48:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'start_t.tv_sec'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c: scope_hint: In function 'vddk_open'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:849:3: note: in expansion of macro 'VDDK_CALL_START'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:101: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:56: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:60:3: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:704:3: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:849:3: note: in expansion of macro 'VDDK_CALL_START'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:849:3: note: in expansion of macro 'VDDK_CALL_START'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:851:3: note: in expansion of macro 'VDDK_CALL_END'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:851:3: note: in expansion of macro 'VDDK_CALL_END'
Error: CPPCHECK_WARNING (CWE-476): [#def5]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/const-string-vector.h:40: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-476): [#def6]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/nbdkit-string.h:40: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-476): [#def7]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/string-vector.h:40: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-457): [#def8]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.c:72: error[uninitvar]: Uninitialized variable: newbytes
Error: CPPCHECK_WARNING (CWE-457): [#def9]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.c:72: error[uninitvar]: Uninitialized variable: reqbytes
Error: CPPCHECK_WARNING (CWE-457): [#def10]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.c:76: error[uninitvar]: Uninitialized variable: reqcap
Error: CPPCHECK_WARNING (CWE-457): [#def11]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.c:80: warning[uninitvar]: Uninitialized variable: newcap
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:127:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&cmdline_file, 524288)'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/nbdkit-string.h:40:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/reexec.c: scope_hint: In function 'perform_reexec'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/nbdkit-string.h:40:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
nbdkit-1.41.8-build/nbdkit-1.41.8/contrib/sparseloadtest.c: scope_hint: In function ‘start_thread’
nbdkit-1.41.8-build/nbdkit-1.41.8/contrib/sparseloadtest.c:364:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
Error: CPPCHECK_WARNING (CWE-401): [#def14]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/bzip2/bzip2.c:204: error[memleak]: Memory leak: in_block
Error: CPPCHECK_WARNING (CWE-401): [#def15]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/checkwrite/checkwrite.c:137: error[memleak]: Memory leak: expected
Error: CPPCHECK_WARNING (CWE-401): [#def16]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/checkwrite/checkwrite.c:141: error[memleak]: Memory leak: expected
Error: CPPCHECK_WARNING (CWE-401): [#def17]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/checkwrite/checkwrite.c:143: error[memleak]: Memory leak: expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def18]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c: scope_hint: In function 'cow_trim'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:536:9: warning[-Wanalyzer-null-argument]: use of NULL 'block' where non-null expected
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/rounding.h:36: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:54: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:516:8: note: in expansion of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c: scope_hint: In function 'cow_trim'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/isaligned.h:44:10: note: in definition of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:53: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:59:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:20: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:530:18: note: in expansion of macro 'MIN'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:60:3: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:535:5: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:57: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/blk.h:49:12: note: argument 3 of 'blk_read' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def19]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:563:9: warning[-Wanalyzer-null-argument]: use of NULL 'block' where non-null expected
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:516:8: note: in expansion of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c: scope_hint: In function 'cow_trim'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/isaligned.h:44:10: note: in definition of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:50: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:62:41: note: in definition of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:60:46: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:562:5: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:60:3: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/cow.c:562:5: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/cow/blk.h:49:12: note: argument 3 of 'blk_read' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/ddrescue/ddrescue.c: scope_hint: In function 'parse_mapfile'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/ddrescue/ddrescue.c:74:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/ddrescue/ddrescue.c:74:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c:373:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'event.u.fd'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c: scope_hint: In function 'exitwhen_config'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:154:3: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c:84:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c: scope_hint: In function 'exitwhen_config'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c: scope_hint: In function 'exitwhen_config'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c:373:14: warning[-Wanalyzer-malloc-leak]: leak of 'event.u.filename'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c: scope_hint: In function 'exitwhen_config'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:154:3: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:101: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c:84:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c: scope_hint: In function 'exitwhen_config'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exitwhen/exitwhen.c:408:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(str, 0)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exportname/exportname.c: scope_hint: In function 'get_desc'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exportname/exportname.c:191:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exportname/exportname.c:198:7: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/exportname/exportname.c:200:5: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/extentlist/extentlist.c: scope_hint: In function 'parse_extentlist'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/extentlist/extentlist.c:139:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(extentlist, "r")'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:101: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/extentlist/extentlist.c:48: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/extentlist/extentlist.c:139:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(extentlist, "r")'
Error: CPPCHECK_WARNING (CWE-401): [#def30]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/gzip/gzip.c:203: error[memleak]: Memory leak: in_block
Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c:489:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'block'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c: scope_hint: In function 'afmerge'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c: scope_hint: In function 'af_hash'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c:529:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'block' where non-null expected
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c: scope_hint: In function 'af_hash'
/usr/include/sys/types.h:176: included_from: Included from here.
/usr/include/stdlib.h:514: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c:36: included_from: Included from here.
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
Error: CPPCHECK_WARNING (CWE-401): [#def33]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c:610: error[memleak]: Memory leak: split_key
Error: CPPCHECK_WARNING (CWE-401): [#def34]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c:618: error[memleak]: Memory leak: split_key
Error: CPPCHECK_WARNING (CWE-401): [#def35]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c:625: error[memleak]: Memory leak: split_key
Error: CPPCHECK_WARNING (CWE-401): [#def36]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks-encryption.c:634: error[memleak]: Memory leak: split_key
Error: CPPCHECK_WARNING (CWE-401): [#def37]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/luks/luks.c:355: error[memleak]: Memory leak: sector
Error: GCC_ANALYZER_WARNING (CWE-688): [#def38]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c: scope_hint: In function 'read_cluster'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:509:5: warning[-Wanalyzer-null-argument]: use of NULL 'buf' where non-null expected
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/rounding.h:36: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:77: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:448:8: note: in expansion of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c: scope_hint: In function 'read_cluster'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/isaligned.h:44:10: note: in definition of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:76: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:59:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:20: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:461:18: note: in expansion of macro 'MIN'
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def39]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:533:5: warning[-Wanalyzer-null-argument]: use of NULL 'buf' where non-null expected
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:448:8: note: in expansion of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c: scope_hint: In function 'read_cluster'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/isaligned.h:44:10: note: in definition of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:59:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:20: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:461:18: note: in expansion of macro 'MIN'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:60:3: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:587:5: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE'
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: CPPCHECK_WARNING (CWE-401): [#def40]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/qcow2dec/qcow2dec.c:848: error[memleak]: Memory leak: compressed_cluster
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/rate/rate.c: scope_hint: In function 'maybe_adjust'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/rate/rate.c:224:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(file, 524288)'
Error: CPPCHECK_WARNING (CWE-476): [#def42]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/readahead/readahead.h:49: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-476): [#def43]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/scan/scan.h:52: error[ctunullpointer]: Null pointer dereference: key
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:101: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/spinning/spinning.c:47: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/spinning/spinning.c: scope_hint: In function 'do_seek'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/spinning/spinning.c:349:15: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-131): [#def45]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/swab/swab.c: scope_hint: In function 'swab_pwrite'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/swab/swab.c:184:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/rounding.h:36: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/swab/swab.c:48: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/swab/swab.c:115:8: note: in expansion of macro 'IS_ALIGNED'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/swab/swab.c: scope_hint: In function 'swab_pwrite'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/swab/swab.c:115:8: note: in expansion of macro 'IS_ALIGNED'
Error: CPPCHECK_WARNING (CWE-401): [#def46]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:207: error[memleak]: Memory leak: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c: scope_hint: In function 'calculate_offset_of_entry'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:213:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:41: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:50: included_from: Included from here.
Error: CPPCHECK_WARNING (CWE-401): [#def48]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:216: error[memleak]: Memory leak: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:225:31: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:52: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:60:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:45: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:227:27: note: in expansion of macro 'MIN'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:60:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:45: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:227:27: note: in expansion of macro 'MIN'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:231:9: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:60:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:45: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:227:27: note: in expansion of macro 'MIN'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:234:7: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:60:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:45: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:227:27: note: in expansion of macro 'MIN'
nbdkit-1.41.8-build/nbdkit-1.41.8/include/nbdkit-common.h:42: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/include/nbdkit-filter.h:40: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:48: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:239:49: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:60:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:45: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:227:27: note: in expansion of macro 'MIN'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:255:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&output, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/tar/tar.c:255:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&output, "r")'
Error: CPPCHECK_WARNING (CWE-401): [#def55]
nbdkit-1.41.8-build/nbdkit-1.41.8/filters/time-limit/time-limit.c:101: error[memleak]: Memory leak: h
Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/cdi/cdi.c: scope_hint: In function 'make_layer'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/cdi/cdi.c:132:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(template, 524288)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/curl/scripts.c: scope_hint: In function 'run_header_script'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/curl/scripts.c:212:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:41: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/curl/scripts.c:51: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/curl/scripts.c: scope_hint: In function 'run_cookie_script'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/curl/scripts.c:292:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/curl/scripts.c: scope_hint: In function 'error_from_tmpfile'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/curl/scripts.c:334:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(tmpfile, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/curl/scripts.c:334:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(tmpfile, "r")'
Error: CPPCHECK_WARNING (CWE-758): [#def61]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/data/format.c:1615: warning[objectIndex]: The address of variable 'root' might be accessed at non-zero index.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/data/format.c: scope_hint: In function 'evaluate'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/data/format.c:1623:16: warning[-Wanalyzer-malloc-leak]: leak of 'd'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/rounding.h:36: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/data/format.c:57: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/data/format.c: scope_hint: In function 'store_file_slice'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/data/format.c:1882:7: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/data/format.c:1882:7: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
Error: CPPCHECK_WARNING (CWE-404): [#def65]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/data/format.c:1884: error[resourceLeak]: Resource leak: fp
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/eval/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'in_fd[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/eval/call.c: scope_hint: In function 'call3'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/eval/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'in_fd[ret]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/eval/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'out_fd[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/eval/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'out_fd[ret]'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/directory-lfn.c: scope_hint: In function 'convert_to_utf16le'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/directory-lfn.c:471:6: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open(&lfn_encoding, "UTF-8")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c: scope_hint: In function 'visit'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(".")'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h: scope_hint: In function 'visit'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:154:3: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/rounding.h:36: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c:54: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h:173:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h:173:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c: scope_hint: In function 'visit'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c: scope_hint: In function 'visit_subdirectory'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c:386:6: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(name)'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h: scope_hint: In function 'visit_subdirectory'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:154:3: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h:173:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h:173:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c: scope_hint: In function 'visit_subdirectory'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c:42: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c:46: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h: scope_hint: In function 'visit_subdirectory'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:154:3: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h:173:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.h:173:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/floppy/virtual-floppy.c: scope_hint: In function 'visit_subdirectory'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/linuxdisk/filesystem.c: scope_hint: In function 'estimate_size'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/linuxdisk/filesystem.c:172:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(command, "r")'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/nbd/nbd.c: scope_hint: In function 'nbdplug_default_export'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/nbd/nbd.c:779:28: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_create()'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/nbd/nbd.c:793:10: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_canonical_export_name(nbd_create())'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/python/plugin.c: scope_hint: In function 'py_config'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/python/plugin.c:156:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(value, 524288)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sh/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'in_fd[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sh/call.c: scope_hint: In function 'call3'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sh/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'in_fd[ret]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sh/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'out_fd[0]'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sh/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'out_fd[ret]'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c: scope_hint: In function 'read_block'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c:302:5: warning[-Wanalyzer-null-argument]: use of NULL 'buf' where non-null expected
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c:50: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:59:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:20: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c:344:18: note: in expansion of macro 'MIN'
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c: scope_hint: In function 'read_block.part.0'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c:308:5: warning[-Wanalyzer-null-argument]: use of NULL 'buf' where non-null expected
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:59:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:20: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c:344:18: note: in expansion of macro 'MIN'
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c:318:12: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:59:19: note: in definition of macro 'MIN_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:40:37: note: in expansion of macro 'XXUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/unique-name.h:41:34: note: in expansion of macro 'XUNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/include/minmax.h:51:20: note: in expansion of macro 'NBDKIT_UNIQUE_NAME'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/sparse-random/sparse-random.c:344:18: note: in expansion of macro 'MIN'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/split/split.c: scope_hint: In function 'split_pread'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/split/split.c:258:35: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/split/split.c: scope_hint: In function 'split_pwrite'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/split/split.c:291:35: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/split/split.c: scope_hint: In function 'split_cache'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/split/split.c:322:35: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/split/split.c: scope_hint: In function 'split_extents'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/split/split.c:416:35: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/tmpdisk/tmpdisk.c: scope_hint: In function 'tmpdisk_open'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/tmpdisk/tmpdisk.c:314:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(disk, flags)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/reexec.c: scope_hint: In function 'perform_reexec'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/reexec.c:82:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&cmdline_file, 524288)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/reexec.c:92:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&cmdline_file, 524288)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/reexec.c:96:41: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&cmdline_file, 524288)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c: scope_hint: In function 'load_library'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:449:18: warning[-Wanalyzer-malloc-leak]: leak of 'orig_error'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c: scope_hint: In function 'vddk_open'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:674:40: warning[-Wanalyzer-malloc-leak]: leak of 'allocate_connect_params()'
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:60:3: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE_1'
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.c:704:3: note: in expansion of macro 'ACQUIRE_LOCK_FOR_CURRENT_SCOPE'
Error: CPPCHECK_WARNING (CWE-476): [#def94]
nbdkit-1.41.8-build/nbdkit-1.41.8/plugins/vddk/vddk.h:149: error[ctunullpointer]: Null pointer dereference: key
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/captive.c: scope_hint: In function ‘run_command’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/captive.c:130:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(saved_stdin, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/captive.c:130:48: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(saved_stdout, 1)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c: scope_hint: In function ‘nbdkit_add_export’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c:136:6: warning[-Wanalyzer-malloc-leak]: leak of ‘e.description’
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c: scope_hint: In function ‘nbdkit_add_export’
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:154:3: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/cleanup.h:41: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/server/internal.h:52: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c:43: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c:51:1: note: in expansion of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c:51:1: note: in expansion of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c: scope_hint: In function ‘nbdkit_add_export’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c:136:7: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c: scope_hint: In function ‘nbdkit_add_export’
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:154:3: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c:51:1: note: in expansion of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c:51:1: note: in expansion of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:170:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/exports.c: scope_hint: In function ‘nbdkit_add_export’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/extents.c: scope_hint: In function ‘nbdkit_extents_aligned’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/extents.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of ‘nbdkit_extents_new(*e.offset + *e.length, (long unsigned int)align + offset)’
nbdkit-1.41.8-build/nbdkit-1.41.8/common/utils/vector.h:101: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/server/extents.c:48: included_from: Included from here.
nbdkit-1.41.8-build/nbdkit-1.41.8/server/extents.c:224:11: note: in expansion of macro ‘IS_ALIGNED’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/extents.c: scope_hint: In function ‘nbdkit_extents_aligned’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/extents.c:224:11: note: in expansion of macro ‘IS_ALIGNED’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/extents.c: scope_hint: In function ‘nbdkit_extents_full’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/extents.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of ‘nbdkit_extents_new(offset, (long unsigned int)count + offset)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/main.c: scope_hint: In function ‘switch_stdio’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/main.c:1309:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/main.c:1309:52: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
Error: CPPCHECK_WARNING (CWE-401): [#def103]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/sockets.c:402: error[memleak]: Memory leak: thread_data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
nbdkit-1.41.8-build/nbdkit-1.41.8/server/threadlocal.c: scope_hint: In function ‘threadlocal_new_server_thread’
nbdkit-1.41.8-build/nbdkit-1.41.8/server/threadlocal.c:109:1: warning[-Wanalyzer-malloc-leak]: leak of ‘threadlocal’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
nbdkit-1.41.8-build/nbdkit-1.41.8/tests/dummy-vddk.c: scope_hint: In function 'VixDiskLib_GetInfo'
nbdkit-1.41.8-build/nbdkit-1.41.8/tests/dummy-vddk.c:178:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*info'
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-208.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | nbdkit-1.41.8-1.fc42 |
store-results-to | /tmp/tmp_mhnp6rp/nbdkit-1.41.8-1.fc42.tar.xz |
time-created | 2024-11-13 02:08:49 |
time-finished | 2024-11-13 02:15:58 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp_mhnp6rp/nbdkit-1.41.8-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp_mhnp6rp/nbdkit-1.41.8-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |