nbdkit-1.43.5-1.fc43
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: GCC_ANALYZER_WARNING (CWE-476): [#def3]
nbdkit-1.43.5/build_native/contrib/../../contrib/sparseloadtest.c:364:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
nbdkit-1.43.5/build_native/contrib/../../contrib/sparseloadtest.c:339:10: branch_true: following ‘true’ branch...
branch_true: ...to here
nbdkit-1.43.5/build_native/contrib/../../contrib/sparseloadtest.c:363:12: acquire_memory: this call could return NULL
nbdkit-1.43.5/build_native/contrib/../../contrib/sparseloadtest.c:364:5: danger: ‘data’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def4]
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:536:9: warning[-Wanalyzer-null-argument]: use of NULL 'block' where non-null expected
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:508:1: enter_function: entry to 'cow_trim'
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:512:25: release_memory: 'block' is NULL
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:516:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:525:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:529:6: branch_true: following 'true' branch (when 'blkoffs != 0')...
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:530:18: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:535:5: branch_true: following 'true' branch (when '_r == 0')...
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:536:40: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:536:9: release_memory: 'block' is NULL
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:536:9: danger: argument 3 ('block') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:563:9: warning[-Wanalyzer-null-argument]: use of NULL 'block' where non-null expected
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:508:1: enter_function: entry to 'cow_trim'
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:512:25: release_memory: 'block' is NULL
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:516:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:525:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:529:6: branch_false: following 'false' branch (when 'blkoffs == 0')...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:561:6: branch_true: following 'true' branch (when 'count != 0')...
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:562:5: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:562:5: branch_true: following 'true' branch (when '_r == 0')...
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:563:40: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:563:9: release_memory: 'block' is NULL
nbdkit-1.43.5/build_native/filters/cow/../../../filters/cow/cow.c:563:9: danger: argument 3 ('block') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
nbdkit-1.43.5/build_native/filters/ddrescue/../../../filters/ddrescue/ddrescue.c:74:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
nbdkit-1.43.5/build_native/filters/ddrescue/../../../filters/ddrescue/ddrescue.c:74:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/filters/ddrescue/../../../filters/ddrescue/ddrescue.c:74:8: danger: 'fopen(filename, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
nbdkit-1.43.5/build_native/filters/ddrescue/../../../filters/ddrescue/ddrescue.c:74:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
nbdkit-1.43.5/build_native/filters/ddrescue/../../../filters/ddrescue/ddrescue.c:74:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/ddrescue/../../../filters/ddrescue/ddrescue.c:74:8: danger: 'fopen(filename, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:373:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'event.u.fd'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:358:1: enter_function: entry to 'exitwhen_config'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:365:11: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:366:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:365:12: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:11: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:384:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:12: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:392:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:400:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:404:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:404:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:408:18: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:408:18: acquire_resource: opened here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:409:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:416:5: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:377:9: call_function: inlined call to 'event_list_append' from 'exitwhen_config'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:377:9: call_function: inlined call to 'event_list_append' from 'exitwhen_config'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:377:8: branch_true: following 'true' branch...
branch_true: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:373:14: danger: 'event.u.fd' leaks here; was opened at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:373:14: warning[-Wanalyzer-malloc-leak]: leak of 'event.u.filename'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:358:1: enter_function: entry to 'exitwhen_config'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:365:11: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:366:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:365:12: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:11: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:384:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:12: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:392:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:392:11: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:393:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:392:12: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:420:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:420:11: branch_true: following 'true' branch (when the strings are equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:421:5: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:422:24: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:423:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:427:5: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:377:9: call_function: inlined call to 'event_list_append' from 'exitwhen_config'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:377:9: call_function: inlined call to 'event_list_append' from 'exitwhen_config'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:377:8: branch_true: following 'true' branch...
branch_true: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:373:14: danger: 'event.u.filename' leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:408:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(str, 0)'
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:365:11: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:366:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:365:12: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:11: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:384:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:383:12: branch_false: following 'false' branch (when the strings are non-equal)...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:392:12: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:400:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:404:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:404:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:408:18: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:408:18: acquire_resource: opened here
nbdkit-1.43.5/build_native/filters/exitwhen/../../../filters/exitwhen/exitwhen.c:408:18: danger: 'open(str, 0)' leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:191:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:179:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:183:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:186:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:190:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:191:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:191:8: danger: 'popen(cmd, "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:198:7: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:179:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:183:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:186:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:190:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:191:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:192:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:198:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:198:7: danger: 'popen(cmd, "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:200:5: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:179:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:183:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:186:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:190:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:191:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:192:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:198:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:199:6: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/exportname/../../../filters/exportname/exportname.c:200:5: danger: 'popen(cmd, "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:139:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(extentlist, "r")'
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:135:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:136:3: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:136:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:137:3: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:137:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:139:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:139:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:139:8: danger: 'fopen(extentlist, "r")' leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:139:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(extentlist, "r")'
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:135:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:136:3: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:136:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:137:3: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:137:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:139:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:139:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/extentlist/../../../filters/extentlist/extentlist.c:139:8: danger: 'fopen(extentlist, "r")' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
nbdkit-1.43.5/build_native/filters/luks/../../../filters/luks/luks-encryption.c:489:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'block'
nbdkit-1.43.5/build_native/filters/luks/../../../filters/luks/luks-encryption.c:536:1: enter_function: entry to 'afmerge'
nbdkit-1.43.5/build_native/filters/luks/../../../filters/luks/luks-encryption.c:539:33: acquire_memory: this call could return NULL
nbdkit-1.43.5/build_native/filters/luks/../../../filters/luks/luks-encryption.c:550:3: call_function: inlined call to 'xor' from 'afmerge'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
nbdkit-1.43.5/build_native/filters/rate/../../../filters/rate/rate.c:224:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(file, 524288)'
nbdkit-1.43.5/build_native/filters/rate/../../../filters/rate/rate.c:218:6: branch_false: following 'false' branch (when 'file' is non-NULL)...
nbdkit-1.43.5/build_native/filters/rate/../../../filters/rate/rate.c:224:8: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/rate/../../../filters/rate/rate.c:224:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/filters/rate/../../../filters/rate/rate.c:224:8: danger: 'open(file, 524288)' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
nbdkit-1.43.5/build_native/filters/spinning/../../../filters/spinning/spinning.c:349:3: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
Error: GCC_ANALYZER_WARNING (CWE-131): [#def19]
nbdkit-1.43.5/build_native/filters/swab/../../../filters/swab/swab.c:184:3: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
nbdkit-1.43.5/build_native/filters/swab/../../../filters/swab/swab.c:176:1: enter_function: entry to 'swab_pwrite'
nbdkit-1.43.5/build_native/filters/swab/../../../filters/swab/swab.c:182:8: call_function: calling 'is_aligned' from 'swab_pwrite'
nbdkit-1.43.5/build_native/filters/swab/../../../filters/swab/swab.c:182:8: return_function: returning to 'swab_pwrite' from 'is_aligned'
nbdkit-1.43.5/build_native/filters/swab/../../../filters/swab/swab.c:182:6: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/swab/../../../filters/swab/swab.c:184:11: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/swab/../../../filters/swab/swab.c:184:3: danger: assigned to 'uint16_t *' {{aka 'short unsigned int *'}} here; 'sizeof (uint16_t {{aka short unsigned int}})' is '2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:213:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:164:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:167:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:168:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:172:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:176:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:181:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:194:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:200:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:201:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:205:14: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:206:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:208:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:213:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:213:8: danger: 'popen(cmd, "w")' leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:31: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:164:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:167:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:168:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:172:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:176:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:181:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:194:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:200:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:201:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:205:14: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:206:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:208:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:213:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:214:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:15: branch_true: following 'true' branch (when 'i < copysize')...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:227:27: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:232:8: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:15: branch_true: following 'true' branch (when 'i < copysize')...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:227:27: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:31: danger: 'popen(cmd, "w")' leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:231:9: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:164:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:167:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:168:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:172:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:176:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:181:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:194:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:200:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:201:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:205:14: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:206:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:208:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:213:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:214:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:15: branch_true: following 'true' branch (when 'i < copysize')...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:227:27: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:231:9: danger: 'popen(cmd, "w")' leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:234:7: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:164:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:167:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:168:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:172:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:176:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:181:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:194:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:200:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:201:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:205:14: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:206:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:208:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:213:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:214:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:15: branch_true: following 'true' branch (when 'i < copysize')...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:227:27: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:232:8: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:233:7: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:234:7: danger: 'popen(cmd, "w")' leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:239:44: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "w")'
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:164:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:167:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:168:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:172:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:176:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:181:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:194:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:200:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:201:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:205:14: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:206:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:208:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:213:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:214:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:15: branch_true: following 'true' branch (when 'i < copysize')...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:227:27: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:232:8: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:238:17: branch_true: following 'true' branch (when 'j < count')...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:239:44: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:239:44: danger: 'popen(cmd, "w")' leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:255:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&output, "r")'
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:164:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:167:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:168:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:172:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:176:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:181:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:194:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:200:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:201:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:205:14: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:206:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:208:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:214:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:15: branch_false: following 'false' branch (when 'i >= copysize')...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:252:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:255:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:255:8: danger: 'fopen(&output, "r")' leaks here; was opened at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:255:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&output, "r")'
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:164:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:167:8: branch_true: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:168:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:172:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:176:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:181:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:194:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:200:9: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:201:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:205:14: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:206:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:208:7: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:214:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:225:15: branch_false: following 'false' branch (when 'i >= copysize')...
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:252:3: branch_false: ...to here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:255:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/filters/tar/../../../filters/tar/tar.c:255:8: danger: 'fopen(&output, "r")' leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:132:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(template, 524288)'
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:91:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:96:8: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:97:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:103:8: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:104:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:108:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:113:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:119:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:121:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:125:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:125:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:131:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:132:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/cdi/../../../plugins/cdi/cdi.c:132:8: danger: 'open(template, 524288)' leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:212:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:175:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:178:3: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:185:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:189:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:193:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:197:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:205:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:211:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:212:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:212:8: danger: 'popen(cmd, "r")' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:292:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(cmd, "r")'
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:255:3: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:258:3: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:265:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:269:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:273:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:277:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:285:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:291:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:292:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:292:8: danger: 'popen(cmd, "r")' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:334:8: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(tmpfile, "r")'
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:334:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:334:8: danger: 'fopen(tmpfile, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:334:8: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(tmpfile, "r")'
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:334:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/curl/../../../plugins/curl/scripts.c:334:8: danger: 'fopen(tmpfile, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1623:16: warning[-Wanalyzer-malloc-leak]: leak of 'd'
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1591:1: enter_function: entry to 'evaluate'
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1606:7: call_function: calling 'get_node' from 'evaluate'
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1606:7: return_function: returning to 'evaluate' from 'get_node'
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1614:15: branch_true: following 'true' branch (when 'i < <unknown>')...
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1615:40: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1615:22: call_function: calling 'get_node' from 'evaluate'
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1615:22: return_function: returning to 'evaluate' from 'get_node'
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1690:19: branch_true: following 'true' branch (when 't' is non-NULL)...
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1691:30: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1700:10: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1707:11: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1707:11: call_function: calling 'evaluate' from 'evaluate'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1882:7: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1868:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1876:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1877:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1882:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1882:7: danger: 'fopen(filename, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1882:7: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1868:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1876:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1877:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1882:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/data/../../../plugins/data/format.c:1882:7: danger: 'fopen(filename, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'in_fd[0]'
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:555:1: enter_function: entry to 'call_write'
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:561:7: call_function: calling 'call3' from 'call_write'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'in_fd[ret]'
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:555:1: enter_function: entry to 'call_write'
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:561:7: call_function: calling 'call3' from 'call_write'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'out_fd[0]'
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:555:1: enter_function: entry to 'call_write'
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:561:7: call_function: calling 'call3' from 'call_write'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'out_fd[ret]'
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:555:1: enter_function: entry to 'call_write'
nbdkit-1.43.5/build_native/plugins/eval/../../../plugins/eval/call.c:561:7: call_function: calling 'call3' from 'call_write'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/directory-lfn.c:471:6: warning[-Wanalyzer-malloc-leak]: leak of 'iconv_open(&lfn_encoding, "UTF-8")'
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/directory-lfn.c:470:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/directory-lfn.c:471:6: danger: 'iconv_open(&lfn_encoding, "UTF-8")' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(".")'
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:365:1: enter_function: entry to 'visit_subdirectory'
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:372:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:380:9: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:380:9: call_function: calling 'visit' from 'visit_subdirectory'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:386:6: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(name)'
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:365:1: enter_function: entry to 'visit_subdirectory'
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:372:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:380:9: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/floppy/../../../plugins/floppy/virtual-floppy.c:380:9: call_function: calling 'visit' from 'visit_subdirectory'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
nbdkit-1.43.5/build_native/plugins/linuxdisk/../../../plugins/linuxdisk/filesystem.c:172:8: warning[-Wanalyzer-malloc-leak]: leak of 'popen(command, "r")'
nbdkit-1.43.5/build_native/plugins/linuxdisk/../../../plugins/linuxdisk/filesystem.c:159:6: branch_false: following 'false' branch (when 'fp' is non-NULL)...
nbdkit-1.43.5/build_native/plugins/linuxdisk/../../../plugins/linuxdisk/filesystem.c:163:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/linuxdisk/../../../plugins/linuxdisk/filesystem.c:165:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/linuxdisk/../../../plugins/linuxdisk/filesystem.c:171:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/linuxdisk/../../../plugins/linuxdisk/filesystem.c:172:8: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/linuxdisk/../../../plugins/linuxdisk/filesystem.c:172:8: danger: 'popen(command, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:779:28: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_create()'
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:772:6: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:779:28: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:779:28: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:779:28: danger: 'nbd_create()' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:793:10: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_get_canonical_export_name(nbd_create())'
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:772:6: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:779:28: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:781:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:783:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:783:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:785:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:785:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:787:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:787:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:789:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:789:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:791:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:791:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:793:10: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:793:10: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/nbd/../../../plugins/nbd/nbd.c:793:10: danger: 'nbd_get_canonical_export_name(nbd_create())' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
nbdkit-1.43.5/build_native/plugins/python/../../../plugins/python/plugin.c:156:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(value, 524288)'
nbdkit-1.43.5/build_native/plugins/python/../../../plugins/python/plugin.c:140:6: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/python/../../../plugins/python/plugin.c:142:9: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/python/../../../plugins/python/plugin.c:142:8: branch_false: following 'false' branch (when the strings are equal)...
nbdkit-1.43.5/build_native/plugins/python/../../../plugins/python/plugin.c:147:5: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/python/../../../plugins/python/plugin.c:156:10: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/python/../../../plugins/python/plugin.c:156:10: danger: 'open(value, 524288)' leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'in_fd[0]'
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:555:1: enter_function: entry to 'call_write'
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:561:7: call_function: calling 'call3' from 'call_write'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'in_fd[ret]'
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:555:1: enter_function: entry to 'call_write'
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:561:7: call_function: calling 'call3' from 'call_write'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'out_fd[0]'
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:555:1: enter_function: entry to 'call_write'
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:561:7: call_function: calling 'call3' from 'call_write'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:370:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'out_fd[ret]'
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:555:1: enter_function: entry to 'call_write'
nbdkit-1.43.5/build_native/plugins/sh/../../../plugins/sh/call.c:561:7: call_function: calling 'call3' from 'call_write'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def50]
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:302:5: warning[-Wanalyzer-null-argument]: use of NULL 'buf' where non-null expected
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:325:1: enter_function: entry to 'sparse_random_pread'
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:328:25: release_memory: 'block' is NULL
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:331:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:339:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:343:6: branch_true: following 'true' branch (when 'blkoffs != 0')...
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:344:18: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:346:5: release_memory: 'block' is NULL
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:346:5: call_function: calling 'read_block' from 'sparse_random_pread'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def51]
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:308:5: warning[-Wanalyzer-null-argument]: use of NULL 'buf' where non-null expected
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:325:1: enter_function: entry to 'sparse_random_pread'
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:328:25: release_memory: 'block' is NULL
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:331:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:339:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:343:6: branch_true: following 'true' branch (when 'blkoffs != 0')...
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:344:18: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:346:5: release_memory: 'block' is NULL
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:346:5: call_function: calling 'read_block' from 'sparse_random_pread'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:318:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:325:1: enter_function: entry to 'sparse_random_pread'
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:331:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:339:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:343:6: branch_true: following 'true' branch (when 'blkoffs != 0')...
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:344:18: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/sparse-random/../../../plugins/sparse-random/sparse-random.c:346:5: call_function: calling 'read_block' from 'sparse_random_pread'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:258:31: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:256:10: branch_true: following 'true' branch (when 'count != 0')...
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:257:25: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:258:31: danger: dereference of NULL 'get_file(handle, offset)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:291:31: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:289:10: branch_true: following 'true' branch (when 'count != 0')...
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:290:25: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:291:31: danger: dereference of NULL 'get_file(handle, offset)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:322:31: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:320:10: branch_true: following 'true' branch (when 'count != 0')...
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:321:25: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:322:31: danger: dereference of NULL 'get_file(handle, offset)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:416:31: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:414:10: branch_true: following 'true' branch (when 'count != 0')...
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:415:25: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/split/../../../plugins/split/split.c:416:31: danger: dereference of NULL 'get_file(handle, offset)'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:314:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(disk, flags)'
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:276:6: branch_false: following 'false' branch (when 'h' is non-NULL)...
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:280:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:290:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:294:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:294:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:298:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:298:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:304:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:304:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:310:6: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:314:11: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/tmpdisk/../../../plugins/tmpdisk/tmpdisk.c:314:11: danger: 'open(disk, flags)' leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def58]
nbdkit-1.43.5/build_native/plugins/vddk/../../../common/include/tvdiff.h:48:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'start_t.tv_sec'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:702:1: enter_function: entry to 'vddk_open'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:704:3: branch_true: following 'true' branch (when '_r == 0')...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:711:7: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:712:6: branch_false: following 'false' branch (when 'h' is non-NULL)...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:716:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:721:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:726:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:762:6: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:772:7: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:849:3: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:849:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:851:3: branch_true: following 'true' branch...
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
nbdkit-1.43.5/build_native/plugins/vddk/../../../common/utils/nbdkit-string.h:40:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&cmdline_file, 524288)'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:82:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:83:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:92:9: call_function: inlined call to 'string_reserve' from 'perform_reexec'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:82:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&cmdline_file, 524288)'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:82:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:82:8: danger: 'open(&cmdline_file, 524288)' leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:92:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&cmdline_file, 524288)'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:82:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:83:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:92:8: danger: 'open(&cmdline_file, 524288)' leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:96:38: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&cmdline_file, 524288)'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:82:8: acquire_resource: opened here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:83:6: branch_false: following 'false' branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:92:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:96:38: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/reexec.c:96:38: danger: 'open(&cmdline_file, 524288)' leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:449:7: warning[-Wanalyzer-malloc-leak]: leak of 'orig_error'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:427:15: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:433:9: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:433:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:438:10: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:439:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:448:8: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:448:8: branch_true: following 'true' branch (when 'i == 0')...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:449:20: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:427:15: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:433:9: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:433:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:438:10: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:439:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:448:8: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:448:8: branch_false: following 'false' branch (when 'i != 0')...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:428:24: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:427:15: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:433:9: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:433:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:438:10: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:439:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:448:8: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:451:22: acquire_memory: allocated here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:427:15: branch_true: following 'true' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:433:9: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:433:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:438:10: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:439:8: branch_false: following 'false' branch...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:448:8: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:449:7: danger: 'orig_error' leaks here; was allocated at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:674:7: warning[-Wanalyzer-malloc-leak]: leak of 'allocate_connect_params()'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:702:1: enter_function: entry to 'vddk_open'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:704:3: branch_true: following 'true' branch (when '_r == 0')...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:711:7: branch_true: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:712:6: branch_false: following 'false' branch (when 'h' is non-NULL)...
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:716:3: branch_false: ...to here
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:720:15: call_function: calling 'allocate_connect_params' from 'vddk_open'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:720:15: return_function: returning to 'vddk_open' from 'allocate_connect_params'
nbdkit-1.43.5/build_native/plugins/vddk/../../../plugins/vddk/vddk.c:674:7: danger: 'allocate_connect_params()' leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
nbdkit-1.43.5/build_native/server/../../server/captive.c:130:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(saved_stdin, 0)’
nbdkit-1.43.5/build_native/server/../../server/captive.c:67:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/captive.c:70:8: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:71:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
nbdkit-1.43.5/build_native/server/../../server/captive.c:77:3: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:116:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/captive.c:122:9: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:123:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
nbdkit-1.43.5/build_native/server/../../server/captive.c:128:6: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:128:6: branch_true: following ‘true’ branch (when ‘pid > 0’)...
nbdkit-1.43.5/build_native/server/../../server/captive.c:130:9: branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:130:9: acquire_resource: opened here
nbdkit-1.43.5/build_native/server/../../server/captive.c:130:8: danger: ‘dup2(saved_stdin, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
nbdkit-1.43.5/build_native/server/../../server/captive.c:130:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(saved_stdout, 1)’
nbdkit-1.43.5/build_native/server/../../server/captive.c:67:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/captive.c:70:8: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:71:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
nbdkit-1.43.5/build_native/server/../../server/captive.c:77:3: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:116:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/captive.c:122:9: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:123:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
nbdkit-1.43.5/build_native/server/../../server/captive.c:128:6: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:128:6: branch_true: following ‘true’ branch (when ‘pid > 0’)...
nbdkit-1.43.5/build_native/server/../../server/captive.c:130:9: branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:130:8: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/captive.c:131:9: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/captive.c:131:9: acquire_resource: opened here
nbdkit-1.43.5/build_native/server/../../server/captive.c:130:9: danger: ‘dup2(saved_stdout, 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:6: warning[-Wanalyzer-malloc-leak]: leak of ‘e.description’
nbdkit-1.43.5/build_native/server/../../server/exports.c:104:1: enter_function: entry to ‘nbdkit_add_export’
nbdkit-1.43.5/build_native/server/../../server/exports.c:109:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/exports.c:114:7: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:114:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/exports.c:114:7: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:115:7: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/exports.c:121:12: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:122:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/exports.c:126:6: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:126:6: branch_true: following ‘true’ branch (when ‘description’ is non-NULL)...
nbdkit-1.43.5/build_native/server/../../server/exports.c:127:21: branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:127:21: acquire_memory: allocated here
nbdkit-1.43.5/build_native/server/../../server/exports.c:128:8: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:7: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:7: call_function: inlined call to ‘exports_append’ from ‘nbdkit_add_export’
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:7: call_function: inlined call to ‘exports_append’ from ‘nbdkit_add_export’
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:6: branch_false: following ‘false’ branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:6: danger: ‘e.description’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:7: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
nbdkit-1.43.5/build_native/server/../../server/exports.c:104:1: enter_function: entry to ‘nbdkit_add_export’
nbdkit-1.43.5/build_native/server/../../server/exports.c:109:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/exports.c:114:7: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:114:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/exports.c:114:7: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:121:12: acquire_memory: allocated here
nbdkit-1.43.5/build_native/server/../../server/exports.c:122:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/exports.c:126:6: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:126:6: branch_false: following ‘false’ branch (when ‘description’ is NULL)...
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:7: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:7: call_function: inlined call to ‘exports_append’ from ‘nbdkit_add_export’
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:7: call_function: inlined call to ‘exports_append’ from ‘nbdkit_add_export’
nbdkit-1.43.5/build_native/server/../../server/exports.c:136:7: danger: ‘strdup(name)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
nbdkit-1.43.5/build_native/server/../../server/extents.c:79:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbdkit_extents_new(*e.offset + *e.length, (long unsigned int)align + offset)’
nbdkit-1.43.5/build_native/server/../../server/extents.c:215:1: enter_function: entry to ‘nbdkit_extents_aligned’
nbdkit-1.43.5/build_native/server/../../server/extents.c:224:3: branch_true: following ‘true’ branch...
nbdkit-1.43.5/build_native/server/../../server/extents.c:227:7: branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:227:6: branch_false: following ‘false’ branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:229:15: branch_true: following ‘true’ branch...
nbdkit-1.43.5/build_native/server/../../server/extents.c:230:10: branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:231:8: branch_true: following ‘true’ branch...
nbdkit-1.43.5/build_native/server/../../server/extents.c:233:11: branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:233:10: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/extents.c:250:7: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:250:7: branch_true: following ‘true’ branch (when ‘i == 0’)...
branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:251:14: branch_true: following ‘true’ branch...
nbdkit-1.43.5/build_native/server/../../server/extents.c:252:13: branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:252:12: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/extents.c:262:55: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:264:22: call_function: calling ‘nbdkit_extents_new’ from ‘nbdkit_extents_aligned’
nbdkit-1.43.5/build_native/server/../../server/extents.c:264:22: return_function: returning to ‘nbdkit_extents_aligned’ from ‘nbdkit_extents_new’
nbdkit-1.43.5/build_native/server/../../server/extents.c:79:7: danger: ‘nbdkit_extents_new(*e.offset + *e.length, (long unsigned int)align + offset)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/26)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
nbdkit-1.43.5/build_native/server/../../server/extents.c:79:7: warning[-Wanalyzer-malloc-leak]: leak of ‘nbdkit_extents_new(offset, (long unsigned int)count + offset)’
nbdkit-1.43.5/build_native/server/../../server/extents.c:301:1: enter_function: entry to ‘nbdkit_extents_full’
nbdkit-1.43.5/build_native/server/../../server/extents.c:314:9: call_function: calling ‘nbdkit_extents_new’ from ‘nbdkit_extents_full’
nbdkit-1.43.5/build_native/server/../../server/extents.c:314:9: return_function: returning to ‘nbdkit_extents_full’ from ‘nbdkit_extents_new’
nbdkit-1.43.5/build_native/server/../../server/extents.c:315:6: branch_false: following ‘false’ branch...
branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:317:10: branch_true: following ‘true’ branch (when ‘count != 0’)...
nbdkit-1.43.5/build_native/server/../../server/extents.c:322:9: branch_true: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:322:9: call_function: calling ‘nbdkit_extents_new’ from ‘nbdkit_extents_full’
nbdkit-1.43.5/build_native/server/../../server/extents.c:322:9: return_function: returning to ‘nbdkit_extents_full’ from ‘nbdkit_extents_new’
nbdkit-1.43.5/build_native/server/../../server/extents.c:323:8: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/extents.c:325:9: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/extents.c:79:7: danger: ‘nbdkit_extents_new(offset, (long unsigned int)count + offset)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
nbdkit-1.43.5/build_native/server/../../server/main.c:1345:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
nbdkit-1.43.5/build_native/server/../../server/main.c:1345:7: acquire_resource: opened here
nbdkit-1.43.5/build_native/server/../../server/main.c:1345:6: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
nbdkit-1.43.5/build_native/server/../../server/main.c:1345:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
nbdkit-1.43.5/build_native/server/../../server/main.c:1345:6: branch_false: following ‘false’ branch...
nbdkit-1.43.5/build_native/server/../../server/main.c:1346:7: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/main.c:1346:7: acquire_resource: opened here
nbdkit-1.43.5/build_native/server/../../server/main.c:1345:7: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
nbdkit-1.43.5/build_native/server/../../server/threadlocal.c:109:1: warning[-Wanalyzer-malloc-leak]: leak of ‘threadlocal’
nbdkit-1.43.5/build_native/server/../../server/threadlocal.c:98:17: acquire_memory: allocated here
nbdkit-1.43.5/build_native/server/../../server/threadlocal.c:99:6: branch_false: following ‘false’ branch (when ‘threadlocal’ is non-NULL)...
nbdkit-1.43.5/build_native/server/../../server/threadlocal.c:103:9: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/threadlocal.c:104:6: branch_false: following ‘false’ branch (when ‘err == 0’)...
nbdkit-1.43.5/build_native/server/../../server/threadlocal.c:109:1: branch_false: ...to here
nbdkit-1.43.5/build_native/server/../../server/threadlocal.c:109:1: danger: ‘threadlocal’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
nbdkit-1.43.5/build_native/tests/../../tests/dummy-vddk.c:178:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*info'
nbdkit-1.43.5/build_native/tests/../../tests/dummy-vddk.c:177:11: acquire_memory: this call could return NULL
nbdkit-1.43.5/build_native/tests/../../tests/dummy-vddk.c:178:3: danger: 'calloc(1, 64)' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def75]
nbdkit-1.43.5/common/allocators/zstd.c:328: error[memleakOnRealloc]: Common realloc mistake: 'page' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-476): [#def76]
nbdkit-1.43.5/common/utils/const-string-vector.h:40: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-476): [#def77]
nbdkit-1.43.5/common/utils/nbdkit-string.h:40: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-476): [#def78]
nbdkit-1.43.5/common/utils/string-vector.h:40: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-457): [#def79]
nbdkit-1.43.5/common/utils/vector.c:72: error[uninitvar]: Uninitialized variable: newbytes
Error: CPPCHECK_WARNING (CWE-457): [#def80]
nbdkit-1.43.5/common/utils/vector.c:72: error[uninitvar]: Uninitialized variable: reqbytes
Error: CPPCHECK_WARNING (CWE-457): [#def81]
nbdkit-1.43.5/common/utils/vector.c:76: error[uninitvar]: Uninitialized variable: reqcap
Error: CPPCHECK_WARNING (CWE-457): [#def82]
nbdkit-1.43.5/common/utils/vector.c:80: warning[uninitvar]: Uninitialized variable: newcap
Error: CPPCHECK_WARNING (CWE-476): [#def83]
nbdkit-1.43.5/contrib/sparseloadtest.c:364: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-401): [#def84]
nbdkit-1.43.5/filters/bzip2/bzip2.c:204: error[memleak]: Memory leak: in_block
Error: CPPCHECK_WARNING (CWE-401): [#def85]
nbdkit-1.43.5/filters/checkwrite/checkwrite.c:137: error[memleak]: Memory leak: expected
Error: CPPCHECK_WARNING (CWE-401): [#def86]
nbdkit-1.43.5/filters/checkwrite/checkwrite.c:141: error[memleak]: Memory leak: expected
Error: CPPCHECK_WARNING (CWE-401): [#def87]
nbdkit-1.43.5/filters/checkwrite/checkwrite.c:143: error[memleak]: Memory leak: expected
Error: CPPCHECK_WARNING (CWE-401): [#def88]
nbdkit-1.43.5/filters/gzip/gzip.c:203: error[memleak]: Memory leak: in_block
Error: CPPCHECK_WARNING (CWE-476): [#def89]
nbdkit-1.43.5/filters/luks/luks-encryption.c:489: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: in2
Error: CPPCHECK_WARNING (CWE-476): [#def90]
nbdkit-1.43.5/filters/luks/luks-encryption.c:489: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: out
Error: CPPCHECK_WARNING (CWE-401): [#def91]
nbdkit-1.43.5/filters/luks/luks-encryption.c:610: error[memleak]: Memory leak: split_key
Error: CPPCHECK_WARNING (CWE-401): [#def92]
nbdkit-1.43.5/filters/luks/luks-encryption.c:618: error[memleak]: Memory leak: split_key
Error: CPPCHECK_WARNING (CWE-401): [#def93]
nbdkit-1.43.5/filters/luks/luks-encryption.c:625: error[memleak]: Memory leak: split_key
Error: CPPCHECK_WARNING (CWE-401): [#def94]
nbdkit-1.43.5/filters/luks/luks-encryption.c:634: error[memleak]: Memory leak: split_key
Error: CPPCHECK_WARNING (CWE-401): [#def95]
nbdkit-1.43.5/filters/luks/luks.c:355: error[memleak]: Memory leak: sector
Error: CPPCHECK_WARNING (CWE-401): [#def96]
nbdkit-1.43.5/filters/qcow2dec/qcow2dec.c:848: error[memleak]: Memory leak: compressed_cluster
Error: CPPCHECK_WARNING (CWE-476): [#def97]
nbdkit-1.43.5/filters/readahead/readahead.h:49: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-476): [#def98]
nbdkit-1.43.5/filters/scan/scan.h:52: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-401): [#def99]
nbdkit-1.43.5/filters/tar/tar.c:207: error[memleak]: Memory leak: buf
Error: CPPCHECK_WARNING (CWE-401): [#def100]
nbdkit-1.43.5/filters/tar/tar.c:216: error[memleak]: Memory leak: buf
Error: CPPCHECK_WARNING (CWE-401): [#def101]
nbdkit-1.43.5/filters/time-limit/time-limit.c:101: error[memleak]: Memory leak: h
Error: CPPCHECK_WARNING (CWE-758): [#def102]
nbdkit-1.43.5/plugins/data/format.c:1615: warning[objectIndex]: The address of variable 'root' might be accessed at non-zero index.
Error: CPPCHECK_WARNING (CWE-404): [#def103]
nbdkit-1.43.5/plugins/data/format.c:1884: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-476): [#def104]
nbdkit-1.43.5/plugins/vddk/vddk.h:149: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-401): [#def105]
nbdkit-1.43.5/server/sockets.c:402: error[memleak]: Memory leak: thread_data
Error: CPPCHECK_WARNING (CWE-476): [#def106]
nbdkit-1.43.5/tests/dummy-vddk.c:178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: *info
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-254.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 | nbdkit-1.43.5-1.fc43 |
store-results-to | /tmp/tmpqkj7pozv/nbdkit-1.43.5-1.fc43.tar.xz |
time-created | 2025-04-25 14:42:01 |
time-finished | 2025-04-25 14:49:12 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpqkj7pozv/nbdkit-1.43.5-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqkj7pozv/nbdkit-1.43.5-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |