nvme-cli-2.13-1.fc43
List of Findings
Error: CPPCHECK_WARNING (CWE-404): [#def1]
nvme-cli-2.13/fabrics.c:449: error[resourceLeak]: Resource leak: f
Error: CPPCHECK_WARNING (CWE-476): [#def2]
nvme-cli-2.13/nbft.c:62: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: entry
Error: CPPCHECK_WARNING (CWE-404): [#def3]
nvme-cli-2.13/nvme-rpmb.c:226: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-476): [#def4]
nvme-cli-2.13/nvme-rpmb.c:700: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rsp
Error: CPPCHECK_WARNING (CWE-476): [#def5]
nvme-cli-2.13/nvme-rpmb.c:701: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rsp
Error: CPPCHECK_WARNING (CWE-476): [#def6]
nvme-cli-2.13/nvme-rpmb.c:703: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rsp
Error: CPPCHECK_WARNING (CWE-476): [#def7]
nvme-cli-2.13/nvme-rpmb.c:967: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: msg_buf
Error: CPPCHECK_WARNING (CWE-457): [#def8]
nvme-cli-2.13/nvme.c:4795: warning[uninitvar]: Uninitialized variable: result_def
Error: CPPCHECK_WARNING (CWE-457): [#def9]
nvme-cli-2.13/nvme.c:5558: warning[uninitvar]: Uninitialized variable: err
Error: CPPCHECK_WARNING (CWE-404): [#def10]
nvme-cli-2.13/nvme.c:9971: error[resourceLeak]: Resource leak: fd
Error: CPPCHECK_WARNING (CWE-404): [#def11]
nvme-cli-2.13/nvme.c:9999: error[resourceLeak]: Resource leak: fd
Error: CPPCHECK_WARNING (CWE-457): [#def12]
nvme-cli-2.13/plugins/innogrit/innogrit-nvme.c:72: error[uninitvar]: Uninitialized variable: pdrvinfo->signature
Error: CPPCHECK_WARNING (CWE-457): [#def13]
nvme-cli-2.13/plugins/innogrit/innogrit-nvme.c:114: error[uninitvar]: Uninitialized variable: pevlog->signature
Error: CPPCHECK_WARNING (CWE-476): [#def14]
nvme-cli-2.13/plugins/innogrit/innogrit-nvme.c:211: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-404): [#def15]
nvme-cli-2.13/plugins/innogrit/innogrit-nvme.c:305: error[resourceLeak]: Resource leak: fp
Error: CPPCHECK_WARNING (CWE-456): [#def16]
nvme-cli-2.13/plugins/intel/intel-nvme.c:1352: error[uninitdata]: Memory is allocated but not initialized: intel
Error: CPPCHECK_WARNING (CWE-476): [#def17]
nvme-cli-2.13/plugins/intel/intel-nvme.c:1352: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: intel
Error: CPPCHECK_WARNING (CWE-476): [#def18]
nvme-cli-2.13/plugins/intel/intel-nvme.c:1353: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: intel
Error: CPPCHECK_WARNING (CWE-404): [#def19]
nvme-cli-2.13/plugins/lm/lm-nvme.c:381: error[resourceLeak]: Resource leak: file
Error: CPPCHECK_WARNING (CWE-758): [#def20]
nvme-cli-2.13/plugins/micron/micron-nvme.c:1084: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-401): [#def21]
nvme-cli-2.13/plugins/micron/micron-nvme.c:1850: error[memleakOnRealloc]: Common realloc mistake: 'buffer' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-758): [#def22]
nvme-cli-2.13/plugins/micron/micron-nvme.c:2690: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def23]
nvme-cli-2.13/plugins/ocp/ocp-clear-features.c:18: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-682): [#def24]
nvme-cli-2.13/plugins/ocp/ocp-nvme.c:968: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def25]
nvme-cli-2.13/plugins/ocp/ocp-nvme.c:1020: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def26]
nvme-cli-2.13/plugins/ocp/ocp-nvme.c:1076: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-682): [#def27]
nvme-cli-2.13/plugins/ocp/ocp-nvme.c:1126: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def28]
nvme-cli-2.13/plugins/ocp/ocp-telemetry-decode.c:474: warning[nullPointer]: Possible null pointer dereference: pdata
Error: CPPCHECK_WARNING (CWE-476): [#def29]
nvme-cli-2.13/plugins/ocp/ocp-telemetry-decode.c:475: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: description_str
Error: CPPCHECK_WARNING (CWE-476): [#def30]
nvme-cli-2.13/plugins/ocp/ocp-telemetry-decode.c:989: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: description
Error: CPPCHECK_WARNING (CWE-476): [#def31]
nvme-cli-2.13/plugins/ocp/ocp-telemetry-decode.c:1002: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: description
Error: CPPCHECK_WARNING (CWE-457): [#def32]
nvme-cli-2.13/plugins/solidigm/solidigm-internal-logs.c:403: warning[uninitvar]: Uninitialized variable: nlog_header->totalnlogs
Error: CPPCHECK_WARNING (CWE-457): [#def33]
nvme-cli-2.13/plugins/solidigm/solidigm-telemetry/nlog.c:122: warning[uninitvar]: Uninitialized variable: str_mismatches
Error: CPPCHECK_WARNING (CWE-457): [#def34]
nvme-cli-2.13/plugins/solidigm/solidigm-workload-tracker.c:477: warning[uninitvar]: Uninitialized variable: dest
Error: CPPCHECK_WARNING (CWE-758): [#def35]
nvme-cli-2.13/plugins/wdc/wdc-nvme.c:8921: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def36]
nvme-cli-2.13/plugins/wdc/wdc-nvme.c:9401: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-476): [#def37]
nvme-cli-2.13/plugins/wdc/wdc-nvme.c:10168: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vuLogInput
Error: CPPCHECK_WARNING (CWE-476): [#def38]
nvme-cli-2.13/plugins/wdc/wdc-nvme.c:10170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vuLogInput
Error: CPPCHECK_WARNING (CWE-476): [#def39]
nvme-cli-2.13/plugins/wdc/wdc-nvme.c:10173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dataBuffer
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
nvme-cli-2.13/redhat-linux-build/../nbft.c:55:24: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
nvme-cli-2.13/redhat-linux-build/../nbft.c:286:5: enter_function: entry to ‘discover_from_nbft’
nvme-cli-2.13/redhat-linux-build/../nbft.c:301:12: branch_true: following ‘true’ branch (when ‘connect != 0’)...
nvme-cli-2.13/redhat-linux-build/../nbft.c:305:9: call_function: inlined call to ‘list_head_init’ from ‘discover_from_nbft’
nvme-cli-2.13/redhat-linux-build/../nbft.c:306:15: call_function: calling ‘read_nbft_files’ from ‘discover_from_nbft’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
nvme-cli-2.13/redhat-linux-build/../nbft.c:61:33: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
nvme-cli-2.13/redhat-linux-build/../nbft.c:286:5: enter_function: entry to ‘discover_from_nbft’
nvme-cli-2.13/redhat-linux-build/../nbft.c:301:12: branch_true: following ‘true’ branch (when ‘connect != 0’)...
nvme-cli-2.13/redhat-linux-build/../nbft.c:305:9: call_function: inlined call to ‘list_head_init’ from ‘discover_from_nbft’
nvme-cli-2.13/redhat-linux-build/../nbft.c:306:15: call_function: calling ‘read_nbft_files’ from ‘discover_from_nbft’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
nvme-cli-2.13/redhat-linux-build/../nbft.c:62:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘entry’
nvme-cli-2.13/redhat-linux-build/../nbft.c:286:5: enter_function: entry to ‘discover_from_nbft’
nvme-cli-2.13/redhat-linux-build/../nbft.c:301:12: branch_true: following ‘true’ branch (when ‘connect != 0’)...
nvme-cli-2.13/redhat-linux-build/../nbft.c:305:9: call_function: inlined call to ‘list_head_init’ from ‘discover_from_nbft’
nvme-cli-2.13/redhat-linux-build/../nbft.c:306:15: call_function: calling ‘read_nbft_files’ from ‘discover_from_nbft’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:323:19: warning[-Wanalyzer-malloc-leak]: leak of ‘rpmb_md5(&num, 4)’
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:839:5: enter_function: entry to ‘rpmb_cmd_option’
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:908:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:912:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:913:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:916:34: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:917:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:923:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:923:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:950:27: call_function: calling ‘read_rpmb_key’ from ‘rpmb_cmd_option’
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:950:27: return_function: returning to ‘rpmb_cmd_option’ from ‘read_rpmb_key’
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:951:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:956:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:956:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:962:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:962:20: branch_false: following ‘false’ branch...
branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme-rpmb.c:981:31: call_function: calling ‘rpmb_read_write_counter’ from ‘rpmb_cmd_option’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
nvme-cli-2.13/redhat-linux-build/../nvme.c:5576:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6176:12: enter_function: entry to ‘set_register’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6182:45: release_memory: ‘dev’ is NULL
nvme-cli-2.13/redhat-linux-build/../nvme.c:6211:15: call_function: calling ‘parse_and_open’ from ‘set_register’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6211:15: return_function: returning to ‘set_register’ from ‘parse_and_open’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6212:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6215:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6215:13: release_memory: ‘dev’ is NULL
nvme-cli-2.13/redhat-linux-build/../nvme.c:6215:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6220:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6220:15: call_function: calling ‘mmap_registers’ from ‘set_register’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
nvme-cli-2.13/redhat-linux-build/../nvme.c:6687:39: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(cfg.file, 0)’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6578:12: enter_function: entry to ‘set_feature’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6633:15: call_function: calling ‘parse_and_open’ from ‘set_feature’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6633:15: return_function: returning to ‘set_feature’ from ‘parse_and_open’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6634:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6637:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6638:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6643:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6654:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6659:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6659:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6664:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6669:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6670:23: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6671:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6682:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6682:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6686:36: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6686:28: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6687:39: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6687:39: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6687:39: danger: ‘open(cfg.file, 0)’ leaks here; was opened at [(50)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/49)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
nvme-cli-2.13/redhat-linux-build/../nvme.c:6808:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(cfg.file, 0)’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6743:12: enter_function: entry to ‘sec_send’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6786:15: call_function: calling ‘parse_and_open’ from ‘sec_send’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6786:15: return_function: returning to ‘sec_send’ from ‘parse_and_open’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6787:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6790:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6791:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6796:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6796:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6800:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6800:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6804:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6804:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6808:26: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6808:26: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6808:26: danger: ‘open(cfg.file, 0)’ leaks here; was opened at [(44)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/43)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
nvme-cli-2.13/redhat-linux-build/../nvme.c:6954:31: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(cfg.file, 0)’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6860:12: enter_function: entry to ‘dir_send’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6912:15: call_function: calling ‘parse_and_open’ from ‘dir_send’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6912:15: return_function: returning to ‘dir_send’ from ‘parse_and_open’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6913:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6916:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6932:17: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6946:13: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6946:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6947:23: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6948:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6953:28: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6953:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6954:31: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6954:31: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6954:31: danger: ‘open(cfg.file, 0)’ leaks here; was opened at [(23)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING: [#def48]
nvme-cli-2.13/redhat-linux-build/../nvme.c:6961:23: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘ffd’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6860:12: enter_function: entry to ‘dir_send’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6912:15: call_function: calling ‘parse_and_open’ from ‘dir_send’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6912:15: return_function: returning to ‘dir_send’ from ‘parse_and_open’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6913:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6916:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6932:17: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6946:13: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6946:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6947:23: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6948:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6953:28: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6953:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6954:31: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6954:31: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6955:28: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6961:46: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6961:23: danger: ‘ffd’ could be invalid: unchecked value from [(23)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/22)
Error: GCC_ANALYZER_WARNING: [#def49]
nvme-cli-2.13/redhat-linux-build/../nvme.c:9147:29: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘mfd’
nvme-cli-2.13/redhat-linux-build/../nvme.c:9016:12: enter_function: entry to ‘passthru’
nvme-cli-2.13/redhat-linux-build/../nvme.c:9103:15: call_function: calling ‘parse_and_open’ from ‘passthru’
nvme-cli-2.13/redhat-linux-build/../nvme.c:9103:15: return_function: returning to ‘passthru’ from ‘parse_and_open’
nvme-cli-2.13/redhat-linux-build/../nvme.c:9104:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9107:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9108:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9113:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9113:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9119:12: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9119:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9125:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9125:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9133:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9141:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9142:25: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9143:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9146:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9146:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9147:29: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9147:29: danger: ‘mfd’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
nvme-cli-2.13/redhat-linux-build/../nvme.c:9558:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(keyfile, "a")’
nvme-cli-2.13/redhat-linux-build/../nvme.c:9523:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9529:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9530:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9536:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9536:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9541:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9542:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9548:24: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9550:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9556:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9558:14: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9558:14: danger: ‘fopen(keyfile, "a")’ leaks here; was opened at [(11)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
nvme-cli-2.13/redhat-linux-build/../nvme.c:9558:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(keyfile, "a")’
nvme-cli-2.13/redhat-linux-build/../nvme.c:9523:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9529:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9530:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9536:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9536:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9541:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9542:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9548:24: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9550:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:9556:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9558:14: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../nvme.c:9558:14: danger: ‘fopen(keyfile, "a")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
nvme-cli-2.13/redhat-linux-build/../nvme.h:98:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
nvme-cli-2.13/redhat-linux-build/../nvme.c:7599:12: enter_function: entry to ‘flush_cmd’
nvme-cli-2.13/redhat-linux-build/../nvme.c:7607:45: release_memory: ‘dev’ is NULL
nvme-cli-2.13/redhat-linux-build/../nvme.c:7621:15: call_function: calling ‘parse_and_open’ from ‘flush_cmd’
nvme-cli-2.13/redhat-linux-build/../nvme.c:7621:15: return_function: returning to ‘flush_cmd’ from ‘parse_and_open’
nvme-cli-2.13/redhat-linux-build/../nvme.c:7622:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:7625:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:7625:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:7626:23: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:7626:23: release_memory: ‘dev’ is NULL
nvme-cli-2.13/redhat-linux-build/../nvme.c:7626:23: call_function: inlined call to ‘__dev_fd’ from ‘flush_cmd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
nvme-cli-2.13/redhat-linux-build/../nvme.h:127:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6860:12: enter_function: entry to ‘dir_send’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6912:15: call_function: calling ‘parse_and_open’ from ‘dir_send’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6912:15: return_function: returning to ‘dir_send’ from ‘parse_and_open’
nvme-cli-2.13/redhat-linux-build/../nvme.c:6913:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6916:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6932:17: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6946:13: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6946:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6947:23: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6948:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6953:28: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6953:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../nvme.c:6954:31: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6954:31: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6871:26: call_function: inlined call to ‘cleanup_fd’ from ‘dir_send’
branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6867:45: call_function: inlined call to ‘cleanup_nvme_dev’ from ‘dir_send’
branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../nvme.c:6867:45: call_function: inlined call to ‘cleanup_nvme_dev’ from ‘dir_send’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
nvme-cli-2.13/redhat-linux-build/../nvme.h:127:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:421:12: enter_function: entry to ‘lm_migration_recv’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:485:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:488:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:489:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:494:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:502:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:503:22: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:511:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:514:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:530:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:532:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:532:17: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:534:18: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:534:17: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:535:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:539:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:438:30: call_function: inlined call to ‘cleanup_file’ from ‘lm_migration_recv’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:437:45: call_function: inlined call to ‘cleanup_nvme_dev’ from ‘lm_migration_recv’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def55]
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:96:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:293:12: enter_function: entry to ‘huawei_list’
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:317:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:320:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:321:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:324:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:325:12: branch_false: following ‘false’ branch (when ‘n != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:328:22: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:329:12: branch_false: following ‘false’ branch (when ‘list_items’ is non-NULL)...
branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:335:21: branch_true: following ‘true’ branch (when ‘i < n’)...
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:338:64: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:345:59: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/huawei/huawei-nvme.c:345:23: call_function: calling ‘huawei_get_nvme_info’ from ‘huawei_list’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def56]
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:135:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:175:12: enter_function: entry to ‘innogrit_geteventlog’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:192:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:195:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:195:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:198:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:205:14: acquire_memory: this call could return NULL
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:206:9: call_function: calling ‘getvsctype’ from ‘innogrit_geteventlog’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:206:9: return_function: returning to ‘innogrit_geteventlog’ from ‘getvsctype’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:208:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:209:23: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:209:23: call_function: calling ‘getvsc_eventlog’ from ‘innogrit_geteventlog’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def57]
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:169:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:175:12: enter_function: entry to ‘innogrit_geteventlog’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:192:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:195:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:195:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:198:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:205:14: acquire_memory: this call could return NULL
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:206:9: call_function: calling ‘getvsctype’ from ‘innogrit_geteventlog’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:206:9: return_function: returning to ‘innogrit_geteventlog’ from ‘getvsctype’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:207:15: call_function: calling ‘getlogpage_eventlog’ from ‘innogrit_geteventlog’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:241:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:218:12: enter_function: entry to ‘innogrit_vsc_getcdump’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:240:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: call_function: calling ‘getvsctype’ from ‘innogrit_vsc_getcdump’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: return_function: returning to ‘innogrit_vsc_getcdump’ from ‘getvsctype’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:245:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:248:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:263:12: branch_true: following ‘true’ branch (when ‘ret == 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:264:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:265:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:267:25: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:268:28: branch_false: following ‘false’ branch (when ‘ipackcount != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:271:42: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:280:38: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:303:12: branch_true: following ‘true’ branch (when ‘itotal == 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:304:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:241:24: danger: ‘fp’ leaks here; was opened at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:241:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:218:12: enter_function: entry to ‘innogrit_vsc_getcdump’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:240:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: call_function: calling ‘getvsctype’ from ‘innogrit_vsc_getcdump’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: return_function: returning to ‘innogrit_vsc_getcdump’ from ‘getvsctype’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:245:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:248:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:263:12: branch_true: following ‘true’ branch (when ‘ret == 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:264:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:265:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:267:25: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:268:28: branch_false: following ‘false’ branch (when ‘ipackcount != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:271:42: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:280:38: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:303:12: branch_true: following ‘true’ branch (when ‘itotal == 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:304:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:241:24: danger: ‘fp’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def60]
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:311:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fp’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:218:12: enter_function: entry to ‘innogrit_vsc_getcdump’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:240:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: call_function: calling ‘getvsctype’ from ‘innogrit_vsc_getcdump’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:243:20: return_function: returning to ‘innogrit_vsc_getcdump’ from ‘getvsctype’
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:245:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:248:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:263:12: branch_true: following ‘true’ branch (when ‘ret == 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:264:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:265:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:267:25: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:268:28: branch_false: following ‘false’ branch (when ‘ipackcount != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:271:42: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:280:38: acquire_memory: this call could return NULL
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:303:12: branch_false: following ‘false’ branch (when ‘itotal != 0’)...
branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:308:16: branch_true: following ‘true’ branch (when ‘ipackcount > ipackindex’)...
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:309:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/innogrit/innogrit-nvme.c:311:17: danger: argument 4 (‘fp’) from [(17)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/16) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def61]
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1424:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘intel’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1342:12: enter_function: entry to ‘get_internal_log’
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1350:38: acquire_memory: this call could return NULL
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1391:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1396:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1396:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1401:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1408:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1415:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1421:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1420:15: call_function: calling ‘read_header’ from ‘get_internal_log’
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1420:15: return_function: returning to ‘get_internal_log’ from ‘read_header’
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1422:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1424:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/intel/intel-nvme.c:1424:9: danger: argument 1 (‘intel’) from [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:373:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(cfg.input, "r")’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:345:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:348:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:348:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:354:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:372:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:373:24: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:373:24: danger: ‘fopen(cfg.input, "r")’ leaks here; was opened at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:373:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(cfg.input, "r")’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:345:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:348:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:348:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:354:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:372:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:373:24: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:373:24: danger: ‘fopen(cfg.input, "r")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:503:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(cfg.output, "w")’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:485:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:488:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:489:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:494:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:502:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:503:22: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:503:22: danger: ‘fopen(cfg.output, "w")’ leaks here; was opened at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:503:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(cfg.output, "w")’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:485:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:488:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:489:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:494:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:502:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:503:22: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:503:22: danger: ‘fopen(cfg.output, "w")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def66]
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:540:29: warning[-Wanalyzer-null-argument]: use of NULL ‘fd’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:485:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:488:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:489:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:494:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:511:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:514:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:530:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:532:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:532:17: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:534:18: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:534:17: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:535:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:539:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:540:29: danger: argument 4 (‘fd’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def67]
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:540:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fd’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:485:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:488:38: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:489:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:494:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:502:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:503:22: acquire_memory: this call could return NULL
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:511:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:514:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:530:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:532:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:532:17: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:534:18: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:534:17: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:535:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:539:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:540:29: danger: argument 4 (‘fd’) from [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-404): [#def68]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:393:32: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:578:12: enter_function: entry to ‘mb_set_high_latency_log’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:609:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:612:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:612:13: call_function: calling ‘parse_params’ from ‘mb_set_high_latency_log’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:655:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:736:12: enter_function: entry to ‘mb_high_latency_log_print’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:750:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:755:9: call_function: calling ‘glp_high_latency_show_bar’ from ‘mb_high_latency_log_print’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:755:9: return_function: returning to ‘mb_high_latency_log_print’ from ‘glp_high_latency_show_bar’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:655:16: danger: ‘fopen("log_c3.csv", "w+")’ leaks here; was opened at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:655:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:736:12: enter_function: entry to ‘mb_high_latency_log_print’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:750:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:755:9: call_function: calling ‘glp_high_latency_show_bar’ from ‘mb_high_latency_log_print’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:755:9: return_function: returning to ‘mb_high_latency_log_print’ from ‘glp_high_latency_show_bar’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:655:16: danger: ‘fopen("log_c3.csv", "w+")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:750:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: danger: ‘fopen("log_c3.csv", "w+")’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:750:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: danger: ‘fopen("log_c3.csv", "w+")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:756:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:736:12: enter_function: entry to ‘mb_high_latency_log_print’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:750:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:755:9: call_function: calling ‘glp_high_latency_show_bar’ from ‘mb_high_latency_log_print’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:755:9: return_function: returning to ‘mb_high_latency_log_print’ from ‘glp_high_latency_show_bar’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:756:15: call_function: inlined call to ‘__dev_fd’ from ‘mb_high_latency_log_print’
branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:756:15: danger: ‘fopen("log_c3.csv", "w+")’ leaks here; was opened at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:756:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("log_c3.csv", "w+")’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:736:12: enter_function: entry to ‘mb_high_latency_log_print’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:750:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:753:15: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:755:9: call_function: calling ‘glp_high_latency_show_bar’ from ‘mb_high_latency_log_print’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:755:9: return_function: returning to ‘mb_high_latency_log_print’ from ‘glp_high_latency_show_bar’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:756:15: call_function: inlined call to ‘__dev_fd’ from ‘mb_high_latency_log_print’
branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:756:15: danger: ‘fopen("log_c3.csv", "w+")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:844:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(cfg.fw, 0)’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:820:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:823:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:823:12: branch_false: following ‘false’ branch...
branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:829:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:830:33: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:829:21: branch_false: following ‘false’ branch (when ‘i == 3’)...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:832:22: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:844:17: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:844:17: danger: ‘open(cfg.fw, 0)’ leaks here; was opened at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def76]
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:929:9: warning[-Wanalyzer-null-argument]: use of NULL ‘fd’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:934:5: enter_function: entry to ‘io_latency_histogram’
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:936:21: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:945:9: release_memory: assuming ‘fopen(file, "w+")’ is NULL
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:945:9: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:945:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:946:9: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:946:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:949:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:950:17: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:950:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:951:17: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:951:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:952:17: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:952:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:956:29: branch_true: following ‘true’ branch (when ‘i != 32’)...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:957:28: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:957:28: branch_false: following ‘false’ branch (when ‘i != 31’)...
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:962:78: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/memblaze/memblaze-nvme.c:962:33: call_function: calling ‘ioLatencyHistogramOutput’ from ‘io_latency_histogram’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def77]
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:1668:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*strOSDirName’
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:2962:12: enter_function: entry to ‘micron_internal_logs’
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3061:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3065:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3078:19: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3083:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3083:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3092:24: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3095:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3100:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3101:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3105:12: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3105:12: branch_false: following ‘false’ branch (when ‘telemetry_option == 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3122:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3127:21: branch_true: following ‘true’ branch (when ‘i != 20’)...
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3128:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3128:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3128:20: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3135:9: call_function: calling ‘SetupDebugDataDirectories’ from ‘micron_internal_logs’
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3135:9: return_function: returning to ‘micron_internal_logs’ from ‘SetupDebugDataDirectories’
nvme-cli-2.13/redhat-linux-build/../plugins/micron/micron-nvme.c:3137:9: call_function: calling ‘GetTimestampInfo’ from ‘micron_internal_logs’
Error: GCC_ANALYZER_WARNING: [#def78]
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-hardware-component-log.c:219:21: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-hardware-component-log.c:193:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-hardware-component-log.c:199:33: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-hardware-component-log.c:210:12: branch_false: following ‘false’ branch (when ‘log_bytes > 6.4e+1l’)...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-hardware-component-log.c:215:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-hardware-component-log.c:219:21: danger: at least one operand of the size argument is of a floating-point type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2734:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*cfg.file, 0)’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2728:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2733:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2733:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2734:23: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2734:23: danger: ‘open(*cfg.file, 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:475:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘description_str’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:870:6: enter_function: entry to ‘parse_common_event’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:889:20: branch_true: following ‘true’ branch (when ‘pevent_fifos_object’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:890:25: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:890:25: call_function: calling ‘json_add_formatted_u32_str’ from ‘parse_common_event’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:890:25: return_function: returning to ‘parse_common_event’ from ‘json_add_formatted_u32_str’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:892:25: call_function: calling ‘json_object_add_value_string’ from ‘parse_common_event’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:892:25: return_function: returning to ‘parse_common_event’ from ‘json_object_add_value_string’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:894:25: call_function: calling ‘json_add_formatted_var_size_str’ from ‘parse_common_event’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:989:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘description’ where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:1705:5: enter_function: entry to ‘print_ocp_telemetry_json’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:1770:18: call_function: calling ‘parse_statistics’ from ‘print_ocp_telemetry_json’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:1770:18: return_function: returning to ‘print_ocp_telemetry_json’ from ‘parse_statistics’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:1771:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:1777:18: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-telemetry-decode.c:1777:18: call_function: calling ‘parse_event_fifos’ from ‘print_ocp_telemetry_json’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1152:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1285:28: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1350:23: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1152:17: danger: ‘fopen(file, "rb")’ leaks here; was opened at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1152:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1285:28: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1350:23: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1152:17: danger: ‘fopen(file, "rb")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1158:55: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1221:12: enter_function: entry to ‘nvme_dump_evtlog’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1285:28: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1312:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1317:41: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1317:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1322:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1350:23: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1350:23: call_function: calling ‘nvme_parse_evtlog’ from ‘nvme_dump_evtlog’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1350:23: return_function: returning to ‘nvme_dump_evtlog’ from ‘nvme_parse_evtlog’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1158:55: danger: ‘fopen(file, "rb")’ leaks here; was opened at [(22)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1158:55: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1221:12: enter_function: entry to ‘nvme_dump_evtlog’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1285:28: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1312:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1317:41: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1317:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1322:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1350:23: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1350:23: call_function: calling ‘nvme_parse_evtlog’ from ‘nvme_dump_evtlog’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1350:23: return_function: returning to ‘nvme_dump_evtlog’ from ‘nvme_parse_evtlog’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1158:55: danger: ‘fopen(file, "rb")’ leaks here; was allocated at [(22)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: danger: ‘fopen(file, "wb+")’ leaks here; was opened at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: danger: ‘fopen(file, "wb+")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1304:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1303:16: branch_true: following ‘true’ branch (when ‘length != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1304:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1304:17: danger: ‘fopen(file, "wb+")’ leaks here; was opened at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1304:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1303:16: branch_true: following ‘true’ branch (when ‘length != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1304:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1304:17: danger: ‘fopen(file, "wb+")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1327:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1303:16: branch_false: following ‘false’ branch (when ‘length == 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1327:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1327:9: danger: ‘fopen(file, "wb+")’ leaks here; was opened at [(11)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1327:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1303:16: branch_false: following ‘false’ branch (when ‘length == 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1327:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1327:9: danger: ‘fopen(file, "wb+")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: danger: ‘fopen(file, "wb+")’ leaks here; was opened at [(11)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: danger: ‘fopen(file, "wb+")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1331:35: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1331:35: danger: ‘fopen(file, "wb+")’ leaks here; was opened at [(11)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1331:35: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "wb+")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1331:35: danger: ‘fopen(file, "wb+")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: danger: ‘fopen(file, "rb")’ leaks here; was opened at [(17)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: danger: ‘fopen(file, "rb")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: danger: ‘fopen(file, "rb")’ leaks here; was opened at [(17)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1284:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1287:27: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: danger: ‘fopen(file, "rb")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1346:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1346:25: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1346:25: danger: ‘fopen(file, "rb")’ leaks here; was opened at [(15)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1346:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rb")’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1261:12: branch_false: following ‘false’ branch (when ‘pevent’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1266:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1271:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1276:20: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1278:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1283:31: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1288:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1293:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1294:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1300:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1329:12: branch_true: following ‘true’ branch (when ‘parse != 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1330:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1332:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1338:17: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1339:22: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1340:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1345:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1346:25: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1346:25: danger: ‘fopen(file, "rb")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1788:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 0)’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1597:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1601:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1620:23: branch_true: following ‘true’ branch (when ‘len != 8’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1621:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1628:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1633:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1635:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1641:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1645:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1650:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1652:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1658:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1672:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1677:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1679:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1685:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1689:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1694:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1696:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1702:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1704:23: branch_true: following ‘true’ branch (when ‘len != 18’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1704:50: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1711:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1716:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1718:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1724:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1726:23: branch_true: following ‘true’ branch (when ‘len != 5’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1727:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1727:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1726:35: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1726:23: branch_false: following ‘false’ branch (when ‘len == 5’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1731:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1735:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1740:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1742:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1748:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1750:23: branch_true: following ‘true’ branch (when ‘len != 5’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1751:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1751:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1750:32: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1750:23: branch_false: following ‘false’ branch (when ‘len == 5’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1756:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1758:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1763:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1764:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1770:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1780:14: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1781:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1787:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1788:12: danger: ‘open(&path, 0)’ leaks here; was opened at [(47)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/46)
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def103]
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1820:17: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘open(&path, 0)’
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1597:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1601:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1620:23: branch_true: following ‘true’ branch (when ‘len != 8’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1621:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1628:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1633:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1635:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1641:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1645:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1650:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1652:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1658:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1672:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1677:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1679:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1685:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1689:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1694:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1696:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1702:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1704:23: branch_true: following ‘true’ branch (when ‘len != 18’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1704:50: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1711:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1716:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1718:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1724:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1726:23: branch_true: following ‘true’ branch (when ‘len != 5’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1727:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1727:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1726:35: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1726:23: branch_false: following ‘false’ branch (when ‘len == 5’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1731:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1735:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1740:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1742:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1748:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1750:23: branch_true: following ‘true’ branch (when ‘len != 5’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1751:21: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1758:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1763:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1764:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1770:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1781:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1787:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1788:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1793:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1795:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1801:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1802:14: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1803:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1809:15: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1810:12: branch_false: following ‘false’ branch (when ‘len > 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1816:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1816:9: release_resource: first ‘close’ here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1818:12: branch_true: following ‘true’ branch (when ‘len <= 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1819:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/scaleflux/sfx-nvme.c:1820:17: danger: second ‘close’ here; first ‘close’ was at [(55)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/54)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
nvme-cli-2.13/redhat-linux-build/../plugins/sed/sedopal_cmd.c:185:29: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
nvme-cli-2.13/redhat-linux-build/../plugins/sed/sedopal_cmd.c:506:5: enter_function: entry to ‘sedopal_cmd_password’
nvme-cli-2.13/redhat-linux-build/../plugins/sed/sedopal_cmd.c:521:13: call_function: calling ‘sedopal_set_key’ from ‘sedopal_cmd_password’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:309:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:308:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:311:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:311:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:317:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:317:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:318:21: branch_true: ...to here
branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:323:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:327:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:328:31: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:328:31: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:329:28: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:335:46: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:336:20: branch_true: following ‘true’ branch (when ‘err < 0’)...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:337:25: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:370:12: branch_true: following ‘true’ branch (when ‘buf’ is non-NULL)...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:371:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:309:24: danger: ‘ffd’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:329:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(cfg.file, 0)’
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:308:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:311:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:311:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:317:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:317:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:318:21: branch_true: ...to here
branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:323:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:327:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:328:31: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:328:31: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:329:28: danger: ‘open(cfg.file, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING: [#def107]
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:335:23: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘ffd’
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:308:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:311:14: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:311:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:317:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:317:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:318:21: branch_true: ...to here
branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:323:17: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:327:20: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:328:31: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:328:31: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:329:28: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:335:46: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/shannon/shannon-nvme.c:335:23: danger: ‘ffd’ could be invalid: unchecked value from [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
nvme-cli-2.13/redhat-linux-build/../plugins/solidigm/solidigm-internal-logs.c:882:15: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(cfg.out_dir)’
nvme-cli-2.13/redhat-linux-build/../plugins/solidigm/solidigm-internal-logs.c:857:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/solidigm/solidigm-internal-logs.c:859:9: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/solidigm/solidigm-internal-logs.c:862:34: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/solidigm/solidigm-internal-logs.c:865:21: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/solidigm/solidigm-internal-logs.c:882:15: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/solidigm/solidigm-internal-logs.c:882:15: danger: ‘opendir(cfg.out_dir)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def109]
nvme-cli-2.13/redhat-linux-build/../util/cleanup.h:34:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ffd’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2700:12: enter_function: entry to ‘error_injection_set’
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2728:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2733:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2733:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2734:23: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2735:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2739:40: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2714:26: call_function: inlined call to ‘cleanup_fd’ from ‘error_injection_set’
branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/ocp/ocp-nvme.c:2714:26: call_function: inlined call to ‘cleanup_fd’ from ‘error_injection_set’
Error: GCC_ANALYZER_WARNING (CWE-910): [#def110]
nvme-cli-2.13/redhat-linux-build/../util/cleanup.h:55:15: warning[-Wanalyzer-double-fclose]: double ‘fclose’ of FILE ‘file’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:269:12: enter_function: entry to ‘lm_migration_send’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:345:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:348:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:348:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:354:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:372:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:373:24: acquire_resource: opened here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:374:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:379:40: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:380:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:383:48: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:385:17: release_resource: first ‘fclose’ here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:296:30: call_function: inlined call to ‘cleanup_file’ from ‘lm_migration_send’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def111]
nvme-cli-2.13/redhat-linux-build/../util/cleanup.h:55:15: warning[-Wanalyzer-double-free]: double-‘fclose’ of ‘file’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:269:12: enter_function: entry to ‘lm_migration_send’
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:345:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:348:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:348:12: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:354:13: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:372:12: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:373:24: acquire_memory: allocated here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:374:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:379:40: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:380:20: branch_false: following ‘false’ branch...
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:383:48: branch_false: ...to here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:385:17: release_memory: first ‘fclose’ here
nvme-cli-2.13/redhat-linux-build/../plugins/lm/lm-nvme.c:296:30: call_function: inlined call to ‘cleanup_file’ from ‘lm_migration_send’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
nvme-cli-2.13/redhat-linux-build/../util/utils.c:56:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘text’
nvme-cli-2.13/redhat-linux-build/../util/utils.c:179:6: enter_function: entry to ‘process_field_size_8’
nvme-cli-2.13/redhat-linux-build/../util/utils.c:189:19: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../util/utils.c:190:22: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../util/utils.c:195:17: call_function: calling ‘hex_to_ascii’ from ‘process_field_size_8’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
nvme-cli-2.13/redhat-linux-build/../util/utils.c:208:1: warning[-Wanalyzer-malloc-leak]: leak of ‘hex_to_ascii(&buffer)’
nvme-cli-2.13/redhat-linux-build/../util/utils.c:179:6: enter_function: entry to ‘process_field_size_8’
nvme-cli-2.13/redhat-linux-build/../util/utils.c:189:19: branch_true: following ‘true’ branch...
nvme-cli-2.13/redhat-linux-build/../util/utils.c:190:22: branch_true: ...to here
nvme-cli-2.13/redhat-linux-build/../util/utils.c:195:17: call_function: calling ‘hex_to_ascii’ from ‘process_field_size_8’
nvme-cli-2.13/redhat-linux-build/../util/utils.c:195:17: return_function: returning to ‘process_field_size_8’ from ‘hex_to_ascii’
nvme-cli-2.13/redhat-linux-build/../util/utils.c:208:1: danger: ‘hex_to_ascii(&buffer)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def114]
nvme-cli-2.13/util/utils.c:60: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: text
Error: CPPCHECK_WARNING (CWE-476): [#def115]
nvme-cli-2.13/util/utils.c:149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: description_str
Error: CPPCHECK_WARNING (CWE-401): [#def116]
nvme-cli-2.13/util/utils.c:195: error[leakNoVarFunctionCall]: Allocation with hex_to_ascii, sprintf doesn't release it.
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-124.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 | nvme-cli-2.13-1.fc43 |
store-results-to | /tmp/tmpc5z_homa/nvme-cli-2.13-1.fc43.tar.xz |
time-created | 2025-04-25 14:35:19 |
time-finished | 2025-04-25 14:37:47 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpc5z_homa/nvme-cli-2.13-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpc5z_homa/nvme-cli-2.13-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |