libnvme-1.16.1-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libnvme-1.16.1/examples/telemetry-listen.c:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libnvme-1.16.1/examples/telemetry-listen.c:36:16: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
libnvme-1.16.1/examples/telemetry-listen.c:48:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:164:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libnvme-1.16.1/examples/telemetry-listen.c:48:15: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:164:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
libnvme-1.16.1/examples/telemetry-listen.c:97:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:164:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libnvme-1.16.1/examples/telemetry-listen.c:97:17: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:164:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def7]
libnvme-1.16.1/examples/telemetry-listen.c:110:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:164:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libnvme-1.16.1/examples/telemetry-listen.c:113:23: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def9]
libnvme-1.16.1/examples/telemetry-listen.c:118:30: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:164:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def10]
libnvme-1.16.1/examples/telemetry-listen.c:120:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:164:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
libnvme-1.16.1/examples/telemetry-listen.c:149:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: throw: if ‘nvme_next_host’ throws an exception...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: danger: leaks here; was opened at [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libnvme-1.16.1/examples/telemetry-listen.c:149:9: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: throw: if ‘nvme_first_host’ throws an exception...
libnvme-1.16.1/examples/telemetry-listen.c:149:9: danger: ‘e’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
libnvme-1.16.1/examples/telemetry-listen.c:150:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: throw: if ‘nvme_next_subsystem’ throws an exception...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: danger: leaks here; was opened at [(10)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libnvme-1.16.1/examples/telemetry-listen.c:150:17: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: throw: if ‘nvme_first_subsystem’ throws an exception...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: danger: ‘e’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
libnvme-1.16.1/examples/telemetry-listen.c:151:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.16.1/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.16.1/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.16.1/examples/telemetry-listen.c:151:25: throw: if ‘nvme_subsystem_next_ctrl’ throws an exception...
libnvme-1.16.1/examples/telemetry-listen.c:151:25: danger: leaks here; was opened at [(10)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libnvme-1.16.1/examples/telemetry-listen.c:151:25: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:151:25: throw: if ‘nvme_subsystem_first_ctrl’ throws an exception...
libnvme-1.16.1/examples/telemetry-listen.c:151:25: danger: ‘e’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def17]
libnvme-1.16.1/examples/telemetry-listen.c:157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: GCC_ANALYZER_WARNING (CWE-122): [#def18]
libnvme-1.16.1/examples/telemetry-listen.c:157:33: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:157:33: danger: out-of-bounds write from byte 8 till byte 11 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
libnvme-1.16.1/examples/telemetry-listen.c:157:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘e’
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:145:13: acquire_memory: this call could return NULL
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:157:33: danger: ‘e + (long unsigned int)i * 16’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def20]
libnvme-1.16.1/examples/telemetry-listen.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: GCC_ANALYZER_WARNING (CWE-122): [#def21]
libnvme-1.16.1/examples/telemetry-listen.c:158:33: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libnvme-1.16.1/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.16.1/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.16.1/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.16.1/examples/telemetry-listen.c:158:33: danger: out-of-bounds write from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:724:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:3269:1: enter_function: entry to ‘SWIG_Python_TypeQuery’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:3275:6: branch_false: following ‘false’ branch...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:3278:37: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:3278:37: call_function: calling ‘SWIG_Python_GetModule’ from ‘SWIG_Python_TypeQuery’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:3278:37: return_function: returning to ‘SWIG_Python_TypeQuery’ from ‘SWIG_Python_GetModule’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:3279:18: call_function: calling ‘SWIG_TypeQueryModule’ from ‘SWIG_Python_TypeQuery’
Error: CPPCHECK_WARNING (CWE-457): [#def23]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:872: warning[uninitvar]: Uninitialized variable: buff
Error: CPPCHECK_WARNING (CWE-476): [#def24]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1901: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1901:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1896:6: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: acquire_memory: this call could return NULL
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1901:5: danger: ‘data’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def26]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1904:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1896:6: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: acquire_memory: allocated here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1904:9: throw: if ‘PyObject_IsInstance’ throws an exception...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1904:9: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1909:22: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1896:6: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: acquire_memory: allocated here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1904:8: branch_false: following ‘false’ branch...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1909:22: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1909:22: throw: if ‘PyObject_GetAttrString’ throws an exception...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1909:22: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1911:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1896:6: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: acquire_memory: allocated here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1904:8: branch_false: following ‘false’ branch...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1909:22: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1910:10: branch_true: following ‘true’ branch...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1911:25: branch_true: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1911:25: throw: if ‘PyTuple_New’ throws an exception...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1911:25: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1927:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1894:1: enter_function: entry to ‘SwigPyClientData_New’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1896:6: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: acquire_memory: allocated here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1904:8: branch_true: following ‘true’ branch...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1905:7: branch_true: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1906:7: call_function: inlined call to ‘Py_INCREF’ from ‘SwigPyClientData_New’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1907:7: branch_true: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1927:21: throw: if ‘PyObject_GetAttrString’ throws an exception...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1927:21: danger: ‘data’ leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1928:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1896:6: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: acquire_memory: allocated here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1904:8: branch_true: following ‘true’ branch...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1905:7: branch_true: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1928:9: throw: if ‘PyErr_Occurred’ throws an exception...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1928:9: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1929:7: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1896:6: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: branch_false: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1899:50: acquire_memory: allocated here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1904:8: branch_true: following ‘true’ branch...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1905:7: branch_true: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1928:8: branch_true: following ‘true’ branch...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1929:7: branch_true: ...to here
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1929:7: throw: if ‘PyErr_Clear’ throws an exception...
libnvme-1.16.1/redhat-linux-build/libnvme/nvme_wrap.c:1929:7: danger: ‘data’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libnvme-1.16.1/src/nvme/tree.c:2807:18: enter_function: entry to ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2816:12: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:2821:16: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2822:12: branch_false: following ‘false’ branch (when ‘head’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:2828:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2831:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:2839:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2840:12: branch_true: following ‘true’ branch (when ‘ret == 0’)...
libnvme-1.16.1/src/nvme/tree.c:2841:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/tree.c:2848:19: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/tree.c:2850:9: call_function: calling ‘nvme_ns_set_generic_name’ from ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2850:9: return_function: returning to ‘nvme_ns_open’ from ‘nvme_ns_set_generic_name’
libnvme-1.16.1/src/nvme/tree.c:2852:13: call_function: calling ‘nvme_ns_init’ from ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2813:30: call_function: inlined call to ‘freep’ from ‘nvme_ns_open’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘head’
libnvme-1.16.1/src/nvme/tree.c:2807:18: enter_function: entry to ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2816:12: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:2821:16: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2821:16: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/tree.c:2822:12: branch_false: following ‘false’ branch (when ‘head’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:2828:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2831:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:2839:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2840:12: branch_true: following ‘true’ branch (when ‘ret == 0’)...
libnvme-1.16.1/src/nvme/tree.c:2841:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/tree.c:2850:9: call_function: calling ‘nvme_ns_set_generic_name’ from ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2850:9: return_function: returning to ‘nvme_ns_open’ from ‘nvme_ns_set_generic_name’
libnvme-1.16.1/src/nvme/tree.c:2852:13: call_function: calling ‘nvme_ns_init’ from ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2813:30: call_function: inlined call to ‘freep’ from ‘nvme_ns_open’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
libnvme-1.16.1/src/nvme/tree.c:2807:18: enter_function: entry to ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2815:13: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/tree.c:2816:12: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:2821:16: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2822:12: branch_false: following ‘false’ branch (when ‘head’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:2828:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2831:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:2839:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2840:12: branch_true: following ‘true’ branch (when ‘ret == 0’)...
libnvme-1.16.1/src/nvme/tree.c:2841:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/tree.c:2850:9: call_function: calling ‘nvme_ns_set_generic_name’ from ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2850:9: return_function: returning to ‘nvme_ns_open’ from ‘nvme_ns_set_generic_name’
libnvme-1.16.1/src/nvme/tree.c:2852:13: call_function: calling ‘nvme_ns_init’ from ‘nvme_ns_open’
libnvme-1.16.1/src/nvme/tree.c:2813:30: call_function: inlined call to ‘freep’ from ‘nvme_ns_open’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def36]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘digest’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def37]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dim’
libnvme-1.16.1/src/nvme/fabrics.c:1633:23: throw: if ‘nvme_ctrl_get_fd’ throws an exception...
libnvme-1.16.1/src/nvme/fabrics.c:1625:46: call_function: inlined call to ‘freep’ from ‘nvmf_dim’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def38]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘grpid’
libnvme-1.16.1/src/nvme/tree.c:2310:6: enter_function: entry to ‘nvme_rescan_ctrl’
libnvme-1.16.1/src/nvme/tree.c:2312:25: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/tree.c:2313:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:2315:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2315:9: call_function: calling ‘nvme_ctrl_scan_namespaces’ from ‘nvme_rescan_ctrl’
libnvme-1.16.1/src/nvme/tree.c:2315:9: return_function: returning to ‘nvme_rescan_ctrl’ from ‘nvme_ctrl_scan_namespaces’
libnvme-1.16.1/src/nvme/tree.c:2316:9: call_function: calling ‘nvme_ctrl_scan_paths’ from ‘nvme_rescan_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def39]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hkdf_info’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def40]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hnqn’
libnvme-1.16.1/src/nvme/tree.c:2243:13: enter_function: entry to ‘nvme_scan_ctrl’
libnvme-1.16.1/src/nvme/tree.c:2256:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:2261:19: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2264:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:2274:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2274:21: call_function: calling ‘nvme_default_host’ from ‘nvme_scan_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘hostid’
libnvme-1.16.1/src/nvme/tree.c:2254:9: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/tree.c:2246:47: call_function: inlined call to ‘freep’ from ‘nvme_scan_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def42]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘id’
libnvme-1.16.1/src/nvme/fabrics.c:1769:14: throw: if ‘__nvme_alloc’ throws an exception...
libnvme-1.16.1/src/nvme/fabrics.c:1766:45: call_function: inlined call to ‘freep’ from ‘nvme_fetch_cntrltype_dctype_from_id’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def43]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘key_data’
libnvme-1.16.1/src/nvme/linux.c:1754:13: enter_function: entry to ‘__nvme_import_tls_key’
libnvme-1.16.1/src/nvme/linux.c:1763:20: call_function: calling ‘nvme_import_tls_key_versioned’ from ‘__nvme_import_tls_key’
libnvme-1.16.1/src/nvme/linux.c:1758:39: call_function: inlined call to ‘freep’ from ‘__nvme_import_tls_key’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def44]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘psk_ctx’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def45]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘str’
libnvme-1.16.1/src/nvme/json.c:211:16: branch_true: following ‘true’ branch (when ‘ret > 0’)...
libnvme-1.16.1/src/nvme/json.c:212:36: branch_true: ...to here
libnvme-1.16.1/src/nvme/json.c:213:20: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
libnvme-1.16.1/src/nvme/json.c:215:17: branch_false: ...to here
libnvme-1.16.1/src/nvme/json.c:211:16: branch_false: following ‘false’ branch (when ‘ret <= 0’)...
libnvme-1.16.1/src/nvme/json.c:220:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/json.c:220:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/json.c:223:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/json.c:223:15: throw: if ‘json_tokener_new_ex’ throws an exception...
libnvme-1.16.1/src/nvme/json.c:208:30: call_function: inlined call to ‘freep’ from ‘parse_json’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def46]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘subsys_name’
libnvme-1.16.1/src/nvme/tree.c:2104:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:2108:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2108:15: throw: if ‘nvme_ctrl_sysfs_dir’ throws an exception...
libnvme-1.16.1/src/nvme/tree.c:2099:30: call_function: inlined call to ‘freep’ from ‘nvme_init_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def47]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘target_addr’
libnvme-1.16.1/src/nvme/tree.c:1947:12: branch_false: following ‘false’ branch (when ‘address’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:1950:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1950:21: throw: if ‘opendir’ throws an exception...
libnvme-1.16.1/src/nvme/tree.c:1942:30: call_function: inlined call to ‘freep’ from ‘nvme_ctrl_lookup_phy_slot’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def48]
libnvme-1.16.1/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘transport’
libnvme-1.16.1/src/nvme/tree.c:2154:21: throw: if ‘nvme_get_attr’ throws an exception...
libnvme-1.16.1/src/nvme/tree.c:2147:61: call_function: inlined call to ‘freep’ from ‘nvme_ctrl_alloc’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def49]
libnvme-1.16.1/src/nvme/cleanup.h:28:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘stream’
libnvme-1.16.1/src/nvme/fabrics.c:1390:12: enter_function: entry to ‘uuid_from_product_uuid’
libnvme-1.16.1/src/nvme/fabrics.c:1398:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1400:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1402:17: call_function: inlined call to ‘getline’ from ‘uuid_from_product_uuid’
libnvme-1.16.1/src/nvme/fabrics.c:1392:30: call_function: inlined call to ‘cleanup_file’ from ‘uuid_from_product_uuid’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libnvme-1.16.1/src/nvme/cleanup.h:31:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libnvme-1.16.1/src/nvme/tree.c:1939:14: enter_function: entry to ‘nvme_ctrl_lookup_phy_slot’
libnvme-1.16.1/src/nvme/tree.c:1947:12: branch_false: following ‘false’ branch (when ‘address’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:1950:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1951:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:1957:23: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1958:16: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/tree.c:1959:21: branch_true: ...to here
libnvme-1.16.1/src/nvme/tree.c:1967:28: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:1971:32: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1977:40: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/tree.c:1943:28: call_function: inlined call to ‘cleanup_dir’ from ‘nvme_ctrl_lookup_phy_slot’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
libnvme-1.16.1/src/nvme/cleanup.h:31:15: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(nvme_dmi_entries_dir())’
libnvme-1.16.1/src/nvme/fabrics.c:1331:13: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/fabrics.c:1332:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1332:12: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1334:22: throw: if ‘readdir’ throws an exception...
libnvme-1.16.1/src/nvme/fabrics.c:1324:28: call_function: inlined call to ‘cleanup_dir’ from ‘uuid_from_dmi_entries’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libnvme-1.16.1/src/nvme/cleanup.h:31:15: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(nvme_slots_sysfs_dir())’
libnvme-1.16.1/src/nvme/tree.c:1939:14: enter_function: entry to ‘nvme_ctrl_lookup_phy_slot’
libnvme-1.16.1/src/nvme/tree.c:1947:12: branch_false: following ‘false’ branch (when ‘address’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:1950:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1950:21: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/tree.c:1951:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:1957:23: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1958:25: throw: if ‘readdir’ throws an exception...
libnvme-1.16.1/src/nvme/tree.c:1943:28: call_function: inlined call to ‘cleanup_dir’ from ‘nvme_ctrl_lookup_phy_slot’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
libnvme-1.16.1/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
libnvme-1.16.1/src/nvme/util.c:957:5: enter_function: entry to ‘nvme_uuid_random’
libnvme-1.16.1/src/nvme/util.c:962:13: acquire_resource: opened here
libnvme-1.16.1/src/nvme/util.c:963:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/util.c:965:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/util.c:959:26: call_function: inlined call to ‘cleanup_fd’ from ‘nvme_uuid_random’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
libnvme-1.16.1/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(nvme_uuid_ibm_filename(), 0)’
libnvme-1.16.1/src/nvme/fabrics.c:1285:13: acquire_resource: opened here
libnvme-1.16.1/src/nvme/fabrics.c:1286:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1289:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1282:26: call_function: inlined call to ‘cleanup_fd’ from ‘uuid_from_device_tree’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
libnvme-1.16.1/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(nvmf_dev, 0)’
libnvme-1.16.1/src/nvme/fabrics.c:1004:13: enter_function: entry to ‘nvmf_connect_disc_entry’
libnvme-1.16.1/src/nvme/fabrics.c:1054:21: call_function: calling ‘nvmf_trtype_str’ from ‘nvmf_connect_disc_entry’
libnvme-1.16.1/src/nvme/fabrics.c:1054:21: return_function: returning to ‘nvmf_connect_disc_entry’ from ‘nvmf_trtype_str’
libnvme-1.16.1/src/nvme/fabrics.c:1061:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1069:17: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1092:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1098:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1098:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1099:13: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1099:13: call_function: calling ‘__nvmf_supported_options’ from ‘nvmf_connect_disc_entry’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libnvme-1.16.1/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libnvme-1.16.1/src/nvme/fabrics.c:1474:14: enter_function: entry to ‘nvmf_read_file’
libnvme-1.16.1/src/nvme/fabrics.c:1481:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1484:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1487:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1489:16: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/fabrics.c:1477:26: call_function: inlined call to ‘cleanup_fd’ from ‘nvmf_read_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libnvme-1.16.1/src/nvme/fabrics.c:724:12: warning[-Wanalyzer-malloc-leak]: leak of ‘*((struct nvme_root *)r).options’
libnvme-1.16.1/src/nvme/fabrics.c:1004:13: enter_function: entry to ‘nvmf_connect_disc_entry’
libnvme-1.16.1/src/nvme/fabrics.c:1054:21: call_function: calling ‘nvmf_trtype_str’ from ‘nvmf_connect_disc_entry’
libnvme-1.16.1/src/nvme/fabrics.c:1054:21: return_function: returning to ‘nvmf_connect_disc_entry’ from ‘nvmf_trtype_str’
libnvme-1.16.1/src/nvme/fabrics.c:1061:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1069:17: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1092:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1098:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1098:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1099:13: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1099:13: call_function: calling ‘__nvmf_supported_options’ from ‘nvmf_connect_disc_entry’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
libnvme-1.16.1/src/nvme/fabrics.c:760:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(nvmf_dev, 0)’
libnvme-1.16.1/src/nvme/fabrics.c:1004:13: enter_function: entry to ‘nvmf_connect_disc_entry’
libnvme-1.16.1/src/nvme/fabrics.c:1054:21: call_function: calling ‘nvmf_trtype_str’ from ‘nvmf_connect_disc_entry’
libnvme-1.16.1/src/nvme/fabrics.c:1054:21: return_function: returning to ‘nvmf_connect_disc_entry’ from ‘nvmf_trtype_str’
libnvme-1.16.1/src/nvme/fabrics.c:1061:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1069:17: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1092:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1098:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1098:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1099:13: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1099:13: call_function: calling ‘__nvmf_supported_options’ from ‘nvmf_connect_disc_entry’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
libnvme-1.16.1/src/nvme/fabrics.c:1345:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&filename, 0)’
libnvme-1.16.1/src/nvme/fabrics.c:1332:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1332:12: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1334:16: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1338:21: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1341:21: acquire_resource: opened here
libnvme-1.16.1/src/nvme/fabrics.c:1342:20: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1344:23: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1345:17: danger: ‘open(&filename, 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
libnvme-1.16.1/src/nvme/fabrics.c:1357:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&filename, 0)’
libnvme-1.16.1/src/nvme/fabrics.c:1332:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1332:12: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1334:16: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1338:21: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1353:21: acquire_resource: opened here
libnvme-1.16.1/src/nvme/fabrics.c:1357:17: danger: ‘open(&filename, 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
libnvme-1.16.1/src/nvme/fabrics.c:1485:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(f, 0)’
libnvme-1.16.1/src/nvme/fabrics.c:1480:14: acquire_resource: opened here
libnvme-1.16.1/src/nvme/fabrics.c:1481:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1484:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1485:29: danger: ‘open(f, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
libnvme-1.16.1/src/nvme/fabrics.c:1695:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)tdl)’
libnvme-1.16.1/src/nvme/fabrics.c:1639:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1647:14: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1647:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1655:14: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1655:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1663:14: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1663:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1671:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1671:12: branch_false: following ‘false’ branch (when the strings are equal)...
libnvme-1.16.1/src/nvme/fabrics.c:1680:28: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1683:39: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/fabrics.c:1684:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1689:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1698:15: throw: if ‘get_entity_name’ throws an exception...
libnvme-1.16.1/src/nvme/fabrics.c:1695:9: danger: ‘calloc(1, (long unsigned int)tdl)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def63]
libnvme-1.16.1/src/nvme/fabrics.c:1801:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*c.dctype’ where non-null expected
libnvme-1.16.1/src/nvme/fabrics.c:1795:6: enter_function: entry to ‘nvmf_is_registration_supported’
libnvme-1.16.1/src/nvme/fabrics.c:1798:21: call_function: calling ‘nvme_fetch_cntrltype_dctype_from_id’ from ‘nvmf_is_registration_supported’
libnvme-1.16.1/src/nvme/fabrics.c:1798:21: return_function: returning to ‘nvmf_is_registration_supported’ from ‘nvme_fetch_cntrltype_dctype_from_id’
libnvme-1.16.1/src/nvme/fabrics.c:1798:20: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1801:24: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1801:17: danger: argument 1 (‘*c.dctype’) from [(12)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/11) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libnvme-1.16.1/src/nvme/fabrics.c:1833:22: warning[-Wanalyzer-malloc-leak]: leak of ‘unescape_uri(elem, 0)’
libnvme-1.16.1/src/nvme/fabrics.c:1847:26: enter_function: entry to ‘nvme_parse_uri’
libnvme-1.16.1/src/nvme/fabrics.c:1871:12: branch_false: following ‘false’ branch (when ‘uri’ is non-NULL)...
libnvme-1.16.1/src/nvme/fabrics.c:1874:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1874:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1881:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1881:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1889:16: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1897:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1910:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1910:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1914:21: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1915:20: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1920:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1921:20: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1927:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1934:20: branch_true: following ‘true’ branch (when ‘elem’ is non-NULL)...
libnvme-1.16.1/src/nvme/fabrics.c:1935:25: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1935:51: call_function: calling ‘unescape_uri’ from ‘nvme_parse_uri’
libnvme-1.16.1/src/nvme/fabrics.c:1935:51: return_function: returning to ‘nvme_parse_uri’ from ‘unescape_uri’
libnvme-1.16.1/src/nvme/fabrics.c:1833:22: danger: ‘unescape_uri(elem, 0)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
libnvme-1.16.1/src/nvme/fabrics.c:1837:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
libnvme-1.16.1/src/nvme/fabrics.c:1832:9: branch_false: following ‘false’ branch (when ‘len > 0’)...
libnvme-1.16.1/src/nvme/fabrics.c:1833:22: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1833:15: acquire_memory: this call could return NULL
libnvme-1.16.1/src/nvme/fabrics.c:1834:28: branch_true: following ‘true’ branch (when ‘l > i’)...
libnvme-1.16.1/src/nvme/fabrics.c:1835:24: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1835:20: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1837:34: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/fabrics.c:1837:25: danger: ‘dst + (sizetype)j’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
libnvme-1.16.1/src/nvme/fabrics.c:1841:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
libnvme-1.16.1/src/nvme/fabrics.c:1832:9: branch_false: following ‘false’ branch (when ‘len > 0’)...
libnvme-1.16.1/src/nvme/fabrics.c:1833:22: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1833:15: acquire_memory: this call could return NULL
libnvme-1.16.1/src/nvme/fabrics.c:1834:28: branch_true: following ‘true’ branch (when ‘l > i’)...
libnvme-1.16.1/src/nvme/fabrics.c:1835:24: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1841:25: danger: ‘dst + (sizetype)j’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def67]
libnvme-1.16.1/src/nvme/fabrics.c:1843: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dst
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
libnvme-1.16.1/src/nvme/fabrics.c:1843:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
libnvme-1.16.1/src/nvme/fabrics.c:1832:9: branch_true: following ‘true’ branch (when ‘len <= 0’)...
libnvme-1.16.1/src/nvme/fabrics.c:1832:29: branch_true: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1833:15: acquire_memory: this call could return NULL
libnvme-1.16.1/src/nvme/fabrics.c:1834:28: branch_false: following ‘false’ branch (when ‘l <= i’)...
libnvme-1.16.1/src/nvme/fabrics.c:1843:12: branch_false: ...to here
libnvme-1.16.1/src/nvme/fabrics.c:1843:9: danger: ‘dst + (sizetype)j’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-758): [#def69]
libnvme-1.16.1/src/nvme/ioctl.c:2090: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libnvme-1.16.1/src/nvme/ioctl.h:608:16: warning[-Wanalyzer-malloc-leak]: leak of ‘descs’
libnvme-1.16.1/test/test.c:274:12: enter_function: entry to ‘test_namespace’
libnvme-1.16.1/test/test.c:283:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/test/test.c:286:9: branch_false: ...to here
libnvme-1.16.1/test/test.c:296:17: acquire_memory: allocated here
libnvme-1.16.1/test/test.c:297:12: branch_false: following ‘false’ branch (when ‘descs’ is non-NULL)...
libnvme-1.16.1/test/test.c:300:15: call_function: inlined call to ‘nvme_identify_ns_descs’ from ‘test_namespace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
libnvme-1.16.1/src/nvme/ioctl.h:608:16: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
libnvme-1.16.1/test/ioctl/identify.c:81:13: enter_function: entry to ‘test_ns_descs’
libnvme-1.16.1/test/ioctl/identify.c:95:14: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/identify.c:96:9: branch_true: following ‘true’ branch (when ‘id’ is non-NULL)...
libnvme-1.16.1/test/ioctl/identify.c:97:9: branch_true: ...to here
libnvme-1.16.1/test/ioctl/identify.c:98:15: call_function: inlined call to ‘nvme_identify_ns_descs’ from ‘test_ns_descs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libnvme-1.16.1/src/nvme/ioctl.h:988:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.16.1/test/zns.c:21:13: enter_function: entry to ‘show_zns_properties’
libnvme-1.16.1/test/zns.c:28:14: acquire_memory: allocated here
libnvme-1.16.1/test/zns.c:29:12: branch_false: following ‘false’ branch (when ‘zr’ is non-NULL)...
libnvme-1.16.1/test/zns.c:32:53: branch_false: ...to here
libnvme-1.16.1/test/zns.c:32:13: call_function: inlined call to ‘nvme_zns_identify_ns’ from ‘show_zns_properties’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libnvme-1.16.1/src/nvme/ioctl.h:1020:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.16.1/test/zns.c:21:13: enter_function: entry to ‘show_zns_properties’
libnvme-1.16.1/test/zns.c:28:14: acquire_memory: allocated here
libnvme-1.16.1/test/zns.c:29:12: branch_false: following ‘false’ branch (when ‘zr’ is non-NULL)...
libnvme-1.16.1/test/zns.c:32:53: branch_false: ...to here
libnvme-1.16.1/test/zns.c:41:13: call_function: inlined call to ‘nvme_zns_identify_ctrl’ from ‘show_zns_properties’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libnvme-1.16.1/src/nvme/ioctl.h:4512:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.16.1/test/zns.c:21:13: enter_function: entry to ‘show_zns_properties’
libnvme-1.16.1/test/zns.c:28:14: acquire_memory: allocated here
libnvme-1.16.1/test/zns.c:29:12: branch_false: following ‘false’ branch (when ‘zr’ is non-NULL)...
libnvme-1.16.1/test/zns.c:32:53: branch_false: ...to here
libnvme-1.16.1/test/zns.c:41:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/test/zns.c:47:29: branch_false: ...to here
libnvme-1.16.1/test/zns.c:49:13: call_function: inlined call to ‘nvme_zns_report_zones’ from ‘show_zns_properties’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
libnvme-1.16.1/src/nvme/json.c:212:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(config_file, 0)’
libnvme-1.16.1/src/nvme/json.c:238:5: enter_function: entry to ‘json_read_config’
libnvme-1.16.1/src/nvme/json.c:243:14: acquire_resource: opened here
libnvme-1.16.1/src/nvme/json.c:244:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/json.c:249:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/json.c:249:21: call_function: calling ‘parse_json’ from ‘json_read_config’
libnvme-1.16.1/src/nvme/json.c:249:21: return_function: returning to ‘json_read_config’ from ‘parse_json’
libnvme-1.16.1/src/nvme/json.c:212:36: danger: ‘open(config_file, 0)’ leaks here; was opened at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def76]
libnvme-1.16.1/src/nvme/linux.c:703:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ctx’
libnvme-1.16.1/src/nvme/linux.c:1413:7: enter_function: entry to ‘nvme_generate_tls_key_identity’
libnvme-1.16.1/src/nvme/linux.c:1423:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1428:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1429:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1434:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1435:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1440:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1441:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity’
Error: CPPCHECK_WARNING (CWE-401): [#def77]
libnvme-1.16.1/src/nvme/linux.c:762: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def78]
libnvme-1.16.1/src/nvme/linux.c:768: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def79]
libnvme-1.16.1/src/nvme/linux.c:774: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def80]
libnvme-1.16.1/src/nvme/linux.c:779: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def81]
libnvme-1.16.1/src/nvme/linux.c:783: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def82]
libnvme-1.16.1/src/nvme/linux.c:787: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def83]
libnvme-1.16.1/src/nvme/linux.c:792: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def84]
libnvme-1.16.1/src/nvme/linux.c:949: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def85]
libnvme-1.16.1/src/nvme/linux.c:955: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def86]
libnvme-1.16.1/src/nvme/linux.c:960: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def87]
libnvme-1.16.1/src/nvme/linux.c:964: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def88]
libnvme-1.16.1/src/nvme/linux.c:968: error[memleak]: Memory leak: hkdf_info
Error: CPPCHECK_WARNING (CWE-401): [#def89]
libnvme-1.16.1/src/nvme/linux.c:973: error[memleak]: Memory leak: hkdf_info
Error: GCC_ANALYZER_WARNING (CWE-457): [#def90]
libnvme-1.16.1/src/nvme/linux.c:1116:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘lib_ctx’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
libnvme-1.16.1/src/nvme/linux.c:1262:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(key_len)’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
libnvme-1.16.1/src/nvme/linux.c:1266:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(key_len)’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libnvme-1.16.1/src/nvme/linux.c:1271:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(key_len)’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
libnvme-1.16.1/src/nvme/linux.c:1275:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(key_len)’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libnvme-1.16.1/src/nvme/linux.c:1280:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(key_len)’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
libnvme-1.16.1/src/nvme/linux.c:1284:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(key_len)’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libnvme-1.16.1/src/nvme/linux.c:1289:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(key_len)’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libnvme-1.16.1/src/nvme/linux.c:1373:23: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(digest_len)’
libnvme-1.16.1/src/nvme/linux.c:1451:7: enter_function: entry to ‘nvme_generate_tls_key_identity_compat’
libnvme-1.16.1/src/nvme/linux.c:1461:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1466:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1467:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:1472:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1473:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1478:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1479:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity_compat’
Error: CPPCHECK_WARNING (CWE-401): [#def99]
libnvme-1.16.1/src/nvme/linux.c:1674: error[memleak]: Memory leak: identity
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
libnvme-1.16.1/src/nvme/linux.c:2006:16: warning[-Wanalyzer-malloc-leak]: leak of ‘encoded_key’
libnvme-1.16.1/src/nvme/linux.c:1979:20: branch_false: following ‘false’ branch (when ‘key_len == 32’)...
libnvme-1.16.1/src/nvme/linux.c:1989:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1999:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/linux.c:2000:12: branch_false: following ‘false’ branch (when ‘encoded_key’ is non-NULL)...
libnvme-1.16.1/src/nvme/linux.c:2004:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:2006:16: throw: if ‘base64_encode’ throws an exception...
libnvme-1.16.1/src/nvme/linux.c:2006:16: danger: ‘encoded_key’ leaks here; was allocated at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
libnvme-1.16.1/src/nvme/linux.c:2047:13: warning[-Wanalyzer-malloc-leak]: leak of ‘nvme_import_tls_key_versioned(key, & version, & hmac, & key_len)’
libnvme-1.16.1/src/nvme/linux.c:1754:13: enter_function: entry to ‘__nvme_import_tls_key’
libnvme-1.16.1/src/nvme/linux.c:1763:20: call_function: calling ‘nvme_import_tls_key_versioned’ from ‘__nvme_import_tls_key’
libnvme-1.16.1/src/nvme/linux.c:1763:20: return_function: returning to ‘__nvme_import_tls_key’ from ‘nvme_import_tls_key_versioned’
libnvme-1.16.1/src/nvme/linux.c:1765:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1768:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/linux.c:1768:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/linux.c:1781:16: call_function: calling ‘nvme_update_key’ from ‘__nvme_import_tls_key’
libnvme-1.16.1/src/nvme/linux.c:2047:13: danger: ‘nvme_import_tls_key_versioned(key, & version, & hmac, & key_len)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
libnvme-1.16.1/src/nvme/mi-mctp.c:113:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sd’
libnvme-1.16.1/src/nvme/mi-mctp.c:104:14: acquire_resource: socket created here
libnvme-1.16.1/src/nvme/mi-mctp.c:105:12: branch_false: following ‘false’ branch (when ‘sd >= 0’)...
libnvme-1.16.1/src/nvme/mi-mctp.c:108:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:113:14: throw: if ‘connect’ throws an exception...
libnvme-1.16.1/src/nvme/mi-mctp.c:113:14: danger: ‘sd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libnvme-1.16.1/src/nvme/mi-mctp.c:502:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libnvme-1.16.1/src/nvme/mi-mctp.c:420:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:426:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:426:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:431:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:464:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:473:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:474:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:475:29: branch_true: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:476:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi-mctp.c:484:17: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:502:14: throw: if the called function throws an exception...
libnvme-1.16.1/src/nvme/mi-mctp.c:502:14: danger: ‘tmp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libnvme-1.16.1/src/nvme/mi-mctp.c:507:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libnvme-1.16.1/src/nvme/mi-mctp.c:420:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:426:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:426:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:431:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:464:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:473:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:474:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:475:29: branch_true: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:476:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi-mctp.c:484:17: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:503:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:504:21: branch_true: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:507:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/mi-mctp.c:507:17: danger: ‘tmp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
libnvme-1.16.1/src/nvme/mi-mctp.c:514:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libnvme-1.16.1/src/nvme/mi-mctp.c:420:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:426:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:426:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:431:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:464:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:473:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:474:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:475:29: branch_true: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:476:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi-mctp.c:484:17: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:513:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:514:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:514:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/mi-mctp.c:514:17: danger: ‘tmp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
libnvme-1.16.1/src/nvme/mi-mctp.c:521:15: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libnvme-1.16.1/src/nvme/mi-mctp.c:420:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:426:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:426:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:431:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:464:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:473:20: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:474:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:475:29: branch_true: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:476:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi-mctp.c:484:17: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:513:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:521:15: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:521:15: throw: if the called function throws an exception...
libnvme-1.16.1/src/nvme/mi-mctp.c:521:15: danger: ‘tmp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
libnvme-1.16.1/src/nvme/mi-mctp.c:712:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libnvme-1.16.1/src/nvme/mi-mctp.c:682:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:685:16: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:686:12: branch_false: following ‘false’ branch (when ‘mctp’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi-mctp.c:691:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:696:26: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/mi-mctp.c:697:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:702:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:704:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:709:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:712:20: throw: if the called function throws an exception...
libnvme-1.16.1/src/nvme/mi-mctp.c:712:20: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libnvme-1.16.1/src/nvme/mi-mctp.c:712:20: warning[-Wanalyzer-malloc-leak]: leak of ‘mctp’
libnvme-1.16.1/src/nvme/mi-mctp.c:682:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:685:16: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:685:16: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/mi-mctp.c:686:12: branch_false: following ‘false’ branch (when ‘mctp’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi-mctp.c:691:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:697:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:702:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:704:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi-mctp.c:709:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi-mctp.c:712:20: throw: if the called function throws an exception...
libnvme-1.16.1/src/nvme/mi-mctp.c:712:20: danger: ‘mctp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
libnvme-1.16.1/src/nvme/mi.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘enabled_list’
libnvme-1.16.1/src/nvme/mi.c:2472:5: enter_function: entry to ‘nvme_mi_aem_enable’
libnvme-1.16.1/src/nvme/mi.c:2476:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2481:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2485:40: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2493:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2495:14: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2495:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2498:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2503:14: call_function: calling ‘aem_disable_enabled’ from ‘nvme_mi_aem_enable’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
libnvme-1.16.1/src/nvme/mi.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
libnvme-1.16.1/src/nvme/mi.c:2380:12: enter_function: entry to ‘aem_sync’
libnvme-1.16.1/src/nvme/mi.c:2396:58: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/mi.c:2398:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi.c:2401:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2416:18: call_function: calling ‘nvme_mi_mi_config_set_async_event’ from ‘aem_sync’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
libnvme-1.16.1/src/nvme/mi.c:544:14: warning[-Wanalyzer-malloc-leak]: leak of ‘enabled_list’
libnvme-1.16.1/src/nvme/mi.c:2472:5: enter_function: entry to ‘nvme_mi_aem_enable’
libnvme-1.16.1/src/nvme/mi.c:2476:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2481:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2485:40: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2493:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2495:14: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2495:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2498:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2503:14: call_function: calling ‘aem_disable_enabled’ from ‘nvme_mi_aem_enable’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
libnvme-1.16.1/src/nvme/mi.c:544:14: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
libnvme-1.16.1/src/nvme/mi.c:2380:12: enter_function: entry to ‘aem_sync’
libnvme-1.16.1/src/nvme/mi.c:2396:58: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/mi.c:2398:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi.c:2401:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2416:18: call_function: calling ‘nvme_mi_mi_config_set_async_event’ from ‘aem_sync’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
libnvme-1.16.1/src/nvme/mi.c:550:17: warning[-Wanalyzer-malloc-leak]: leak of ‘enabled_list’
libnvme-1.16.1/src/nvme/mi.c:2546:5: enter_function: entry to ‘nvme_mi_aem_get_enabled’
libnvme-1.16.1/src/nvme/mi.c:2549:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/mi.c:2555:16: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2556:59: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/mi.c:2558:12: branch_false: following ‘false’ branch (when ‘enabled_list’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi.c:2561:14: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2561:14: call_function: calling ‘nvme_mi_mi_config_get_async_event’ from ‘nvme_mi_aem_get_enabled’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
libnvme-1.16.1/src/nvme/mi.c:550:17: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
libnvme-1.16.1/src/nvme/mi.c:2380:12: enter_function: entry to ‘aem_sync’
libnvme-1.16.1/src/nvme/mi.c:2396:58: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/mi.c:2398:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
libnvme-1.16.1/src/nvme/mi.c:2401:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/mi.c:2416:18: call_function: calling ‘nvme_mi_mi_config_set_async_event’ from ‘aem_sync’
Error: CPPCHECK_WARNING (CWE-758): [#def115]
libnvme-1.16.1/src/nvme/mi.c:1927: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
libnvme-1.16.1/src/nvme/nbft.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘discovery’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
libnvme-1.16.1/src/nvme/nbft.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
libnvme-1.16.1/src/nvme/nbft.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ssns’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
libnvme-1.16.1/src/nvme/nbft.c:104:25: warning[-Wanalyzer-malloc-leak]: leak of ‘discovery’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
libnvme-1.16.1/src/nvme/nbft.c:111:25: warning[-Wanalyzer-malloc-leak]: leak of ‘discovery’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
libnvme-1.16.1/src/nvme/nbft.c:224:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ssns’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
libnvme-1.16.1/src/nvme/nbft.c:346:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
libnvme-1.16.1/src/nvme/nbft.c:348:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
libnvme-1.16.1/src/nvme/nbft.c:351:17: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
libnvme-1.16.1/src/nvme/nbft.c:423:17: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
libnvme-1.16.1/src/nvme/nbft.c:468:17: warning[-Wanalyzer-malloc-leak]: leak of ‘discovery’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
libnvme-1.16.1/src/nvme/nbft.c:474:17: warning[-Wanalyzer-malloc-leak]: leak of ‘discovery’
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-131): [#def128]
libnvme-1.16.1/src/nvme/nbft.c:511:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
libnvme-1.16.1/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def129]
libnvme-1.16.1/src/nvme/nbft.c:707:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:707:13: throw: if ‘fseek’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:707:13: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
libnvme-1.16.1/src/nvme/nbft.c:707:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:707:13: throw: if ‘fseek’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:707:13: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
libnvme-1.16.1/src/nvme/nbft.c:709:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/nbft.c:709:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/nbft.c:709:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:709:17: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
libnvme-1.16.1/src/nvme/nbft.c:709:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/nbft.c:709:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/nbft.c:709:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:709:17: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
libnvme-1.16.1/src/nvme/nbft.c:716:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:716:25: throw: if ‘ftell’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:716:25: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
libnvme-1.16.1/src/nvme/nbft.c:716:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:716:25: throw: if ‘ftell’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:716:25: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
libnvme-1.16.1/src/nvme/nbft.c:717:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:717:9: throw: if ‘rewind’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:717:9: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
libnvme-1.16.1/src/nvme/nbft.c:717:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:717:9: throw: if ‘rewind’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:717:9: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def137]
libnvme-1.16.1/src/nvme/nbft.c:721:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_true: following ‘true’ branch (when ‘raw_nbft’ is NULL)...
libnvme-1.16.1/src/nvme/nbft.c:721:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/nbft.c:721:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:721:17: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
libnvme-1.16.1/src/nvme/nbft.c:721:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_true: following ‘true’ branch (when ‘raw_nbft’ is NULL)...
libnvme-1.16.1/src/nvme/nbft.c:721:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/nbft.c:721:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:721:17: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
libnvme-1.16.1/src/nvme/nbft.c:728:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/nbft.c:729:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/nbft.c:729:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:728:13: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
libnvme-1.16.1/src/nvme/nbft.c:728:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.16.1/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/nbft.c:729:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/nbft.c:729:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:728:13: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
libnvme-1.16.1/src/nvme/nbft.c:729:17: warning[-Wanalyzer-malloc-leak]: leak of ‘raw_nbft’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:719:20: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/nbft.c:729:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/nbft.c:729:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:729:17: danger: ‘raw_nbft’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
libnvme-1.16.1/src/nvme/nbft.c:743:17: warning[-Wanalyzer-malloc-leak]: leak of ‘raw_nbft’
libnvme-1.16.1/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:719:20: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.16.1/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/nbft.c:742:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/nbft.c:743:17: branch_true: ...to here
libnvme-1.16.1/src/nvme/nbft.c:743:17: throw: if ‘__nvme_msg’ throws an exception...
libnvme-1.16.1/src/nvme/nbft.c:743:17: danger: ‘raw_nbft’ leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
libnvme-1.16.1/src/nvme/tree.c:126:16: warning[-Wanalyzer-malloc-leak]: leak of ‘nvme_hostid_from_hostnqn(hnqn)’
libnvme-1.16.1/src/nvme/tree.c:2243:13: enter_function: entry to ‘nvme_scan_ctrl’
libnvme-1.16.1/src/nvme/tree.c:2256:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:2261:19: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2264:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:2274:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2274:21: call_function: calling ‘nvme_default_host’ from ‘nvme_scan_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
libnvme-1.16.1/src/nvme/tree.c:468:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’
libnvme-1.16.1/src/nvme/tree.c:2243:13: enter_function: entry to ‘nvme_scan_ctrl’
libnvme-1.16.1/src/nvme/tree.c:2256:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:2261:19: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2264:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:2274:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2274:21: call_function: calling ‘nvme_default_host’ from ‘nvme_scan_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
libnvme-1.16.1/src/nvme/tree.c:1438:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
libnvme-1.16.1/src/nvme/tree.c:2144:20: enter_function: entry to ‘nvme_ctrl_alloc’
libnvme-1.16.1/src/nvme/tree.c:2155:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:2160:16: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2161:12: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/tree.c:2166:22: branch_true: ...to here
libnvme-1.16.1/src/nvme/tree.c:2214:21: call_function: calling ‘nvme_lookup_ctrl’ from ‘nvme_ctrl_alloc’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
libnvme-1.16.1/src/nvme/tree.c:1899:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘r’
libnvme-1.16.1/src/nvme/tree.c:2310:6: enter_function: entry to ‘nvme_rescan_ctrl’
libnvme-1.16.1/src/nvme/tree.c:2312:25: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:2313:12: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2313:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:2315:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2315:9: call_function: calling ‘nvme_ctrl_scan_namespaces’ from ‘nvme_rescan_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
libnvme-1.16.1/src/nvme/tree.c:1958:25: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(address, 10)’
libnvme-1.16.1/src/nvme/tree.c:1947:12: branch_false: following ‘false’ branch (when ‘address’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:1950:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1951:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:1957:23: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1957:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/tree.c:1958:25: throw: if ‘readdir’ throws an exception...
libnvme-1.16.1/src/nvme/tree.c:1958:25: danger: ‘strndup(address, 10)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
libnvme-1.16.1/src/nvme/tree.c:1959:21: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(address, 10)’
libnvme-1.16.1/src/nvme/tree.c:1947:12: branch_false: following ‘false’ branch (when ‘address’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:1950:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1951:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:1957:23: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1957:23: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/tree.c:1958:16: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/tree.c:1959:21: branch_true: ...to here
libnvme-1.16.1/src/nvme/tree.c:1967:28: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:1971:32: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1971:32: throw: if ‘nvme_get_attr’ throws an exception...
libnvme-1.16.1/src/nvme/tree.c:1959:21: danger: ‘strndup(address, 10)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def149]
libnvme-1.16.1/src/nvme/tree.c:1976:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘strndup(address, 10)’ where non-null expected
libnvme-1.16.1/src/nvme/tree.c:1947:12: branch_false: following ‘false’ branch (when ‘address’ is non-NULL)...
libnvme-1.16.1/src/nvme/tree.c:1950:21: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1951:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:1957:23: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1957:23: acquire_memory: this call could return NULL
libnvme-1.16.1/src/nvme/tree.c:1958:16: branch_true: following ‘true’ branch...
libnvme-1.16.1/src/nvme/tree.c:1959:21: branch_true: ...to here
libnvme-1.16.1/src/nvme/tree.c:1967:28: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.16.1/src/nvme/tree.c:1971:32: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:1976:29: danger: argument 2 (‘strndup(address, 10)’) from [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
libnvme-1.16.1/src/nvme/tree.c:2075:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
libnvme-1.16.1/src/nvme/tree.c:2068:13: acquire_memory: allocated here
libnvme-1.16.1/src/nvme/tree.c:2069:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/src/nvme/tree.c:2075:9: branch_false: ...to here
libnvme-1.16.1/src/nvme/tree.c:2075:9: danger: ‘opendir(path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-758): [#def151]
libnvme-1.16.1/src/nvme/types.h:1737: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def152]
libnvme-1.16.1/src/nvme/types.h:9460: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def153]
libnvme-1.16.1/src/nvme/types.h:10137: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-404): [#def154]
libnvme-1.16.1/src/nvme/util.c:798: error[resourceLeak]: Resource leak: file
Error: CPPCHECK_WARNING (CWE-404): [#def155]
libnvme-1.16.1/src/nvme/util.c:804: error[resourceLeak]: Resource leak: file
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
libnvme-1.16.1/test/ioctl/ana.c:89:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:87:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:89:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:89:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
libnvme-1.16.1/test/ioctl/ana.c:128:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:126:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:128:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:128:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
libnvme-1.16.1/test/ioctl/ana.c:170:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:168:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:170:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:170:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
libnvme-1.16.1/test/ioctl/ana.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:215:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:217:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:217:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
libnvme-1.16.1/test/ioctl/ana.c:307:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:305:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:307:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:307:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
libnvme-1.16.1/test/ioctl/ana.c:378:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:376:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:378:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:378:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
libnvme-1.16.1/test/ioctl/ana.c:452:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:450:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:452:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:452:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
libnvme-1.16.1/test/ioctl/ana.c:552:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:550:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:552:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:552:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
libnvme-1.16.1/test/ioctl/ana.c:602:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.16.1/test/ioctl/ana.c:600:36: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/ana.c:602:9: throw: if ‘arbitrary’ throws an exception...
libnvme-1.16.1/test/ioctl/ana.c:602:9: danger: ‘log’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
libnvme-1.16.1/test/ioctl/identify.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
libnvme-1.16.1/test/ioctl/identify.c:95:14: acquire_memory: allocated here
libnvme-1.16.1/test/ioctl/identify.c:96:9: branch_true: following ‘true’ branch (when ‘id’ is non-NULL)...
libnvme-1.16.1/test/ioctl/identify.c:97:9: branch_true: ...to here
libnvme-1.16.1/test/ioctl/identify.c:97:9: throw: if ‘set_mock_admin_cmds’ throws an exception...
libnvme-1.16.1/test/ioctl/identify.c:97:9: danger: ‘id’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-758): [#def166]
libnvme-1.16.1/test/ioctl/misc.c:1221: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-457): [#def167]
libnvme-1.16.1/test/ioctl/util.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘expected_lbas’
libnvme-1.16.1/test/ioctl/misc.c:413:9: branch_false: following ‘false’ branch...
libnvme-1.16.1/test/ioctl/misc.c:413:9: branch_false: ...to here
libnvme-1.16.1/test/ioctl/misc.c:413:9: throw: if ‘fail’ throws an exception...
libnvme-1.16.1/test/ioctl/misc.c:410:48: call_function: inlined call to ‘freep’ from ‘test_get_lba_status’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def168]
libnvme-1.16.1/test/ioctl/util.h:24:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘expected_status’
libnvme-1.16.1/test/ioctl/misc.c:655:9: branch_false: following ‘false’ branch...
libnvme-1.16.1/test/ioctl/misc.c:655:9: branch_false: ...to here
libnvme-1.16.1/test/ioctl/misc.c:655:9: throw: if ‘fail’ throws an exception...
libnvme-1.16.1/test/ioctl/misc.c:650:62: call_function: inlined call to ‘freep’ from ‘test_directive_recv_stream_status’
Error: CPPCHECK_WARNING (CWE-562): [#def169]
libnvme-1.16.1/test/mi-mctp.c:551: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def170]
libnvme-1.16.1/test/mi-mctp.c:569: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def171]
libnvme-1.16.1/test/mi-mctp.c:594: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def172]
libnvme-1.16.1/test/mi-mctp.c:683: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def173]
libnvme-1.16.1/test/mi-mctp.c:686: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def174]
libnvme-1.16.1/test/mi-mctp.c:712: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def175]
libnvme-1.16.1/test/mi-mctp.c:715: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def176]
libnvme-1.16.1/test/mi-mctp.c:741: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def177]
libnvme-1.16.1/test/mi-mctp.c:744: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def178]
libnvme-1.16.1/test/mi-mctp.c:1164: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def179]
libnvme-1.16.1/test/mi-mctp.c:1267: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def180]
libnvme-1.16.1/test/mi-mctp.c:1285: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def181]
libnvme-1.16.1/test/mi-mctp.c:1303: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def182]
libnvme-1.16.1/test/mi-mctp.c:1349: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-457): [#def183]
libnvme-1.16.1/test/mi.c:1013: warning[uninitvar]: Uninitialized variable: exp
Error: CPPCHECK_WARNING (CWE-476): [#def184]
libnvme-1.16.1/test/mock-ifaddrs.c:38: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: storage
Error: GCC_ANALYZER_WARNING (CWE-476): [#def185]
libnvme-1.16.1/test/mock-ifaddrs.c:38:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘storage’
libnvme-1.16.1/test/mock-ifaddrs.c:107:45: acquire_memory: this call could return NULL
libnvme-1.16.1/test/mock-ifaddrs.c:110:9: call_function: inlined call to ‘init_entry’ from ‘getifaddrs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
libnvme-1.16.1/test/mock-ifaddrs.c:117:16: warning[-Wanalyzer-malloc-leak]: leak of ‘storage’
/usr/include/ifaddrs.h:66:12: enter_function: entry to ‘getifaddrs’
libnvme-1.16.1/test/mock-ifaddrs.c:107:45: acquire_memory: allocated here
libnvme-1.16.1/test/mock-ifaddrs.c:110:9: call_function: inlined call to ‘init_entry’ from ‘getifaddrs’
libnvme-1.16.1/test/mock-ifaddrs.c:111:9: call_function: calling ‘init_entry’ from ‘getifaddrs’
libnvme-1.16.1/test/mock-ifaddrs.c:111:9: return_function: returning to ‘getifaddrs’ from ‘init_entry’
libnvme-1.16.1/test/mock-ifaddrs.c:115:9: call_function: calling ‘init_entry’ from ‘getifaddrs’
libnvme-1.16.1/test/mock-ifaddrs.c:115:9: return_function: returning to ‘getifaddrs’ from ‘init_entry’
libnvme-1.16.1/test/mock-ifaddrs.c:117:16: danger: ‘storage’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
libnvme-1.16.1/test/zns.c:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.16.1/test/zns.c:28:14: acquire_memory: allocated here
libnvme-1.16.1/test/zns.c:29:12: branch_false: following ‘false’ branch (when ‘zr’ is non-NULL)...
libnvme-1.16.1/test/zns.c:32:53: branch_false: ...to here
libnvme-1.16.1/test/zns.c:32:13: throw: if ‘nvme_ns_get_fd’ throws an exception...
libnvme-1.16.1/test/zns.c:32:13: danger: ‘zr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
libnvme-1.16.1/test/zns.c:32:53: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.16.1/test/zns.c:28:14: acquire_memory: allocated here
libnvme-1.16.1/test/zns.c:29:12: branch_false: following ‘false’ branch (when ‘zr’ is non-NULL)...
libnvme-1.16.1/test/zns.c:32:53: branch_false: ...to here
libnvme-1.16.1/test/zns.c:32:53: throw: if ‘nvme_ns_get_nsid’ throws an exception...
libnvme-1.16.1/test/zns.c:32:53: danger: ‘zr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
libnvme-1.16.1/test/zns.c:41:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.16.1/test/zns.c:28:14: acquire_memory: allocated here
libnvme-1.16.1/test/zns.c:29:12: branch_false: following ‘false’ branch (when ‘zr’ is non-NULL)...
libnvme-1.16.1/test/zns.c:32:53: branch_false: ...to here
libnvme-1.16.1/test/zns.c:41:13: throw: if ‘nvme_ns_get_fd’ throws an exception...
libnvme-1.16.1/test/zns.c:41:13: danger: ‘zr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
libnvme-1.16.1/test/zns.c:49:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.16.1/test/zns.c:28:14: acquire_memory: allocated here
libnvme-1.16.1/test/zns.c:29:12: branch_false: following ‘false’ branch (when ‘zr’ is non-NULL)...
libnvme-1.16.1/test/zns.c:32:53: branch_false: ...to here
libnvme-1.16.1/test/zns.c:41:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/test/zns.c:47:29: branch_false: ...to here
libnvme-1.16.1/test/zns.c:49:13: throw: if ‘nvme_ns_get_fd’ throws an exception...
libnvme-1.16.1/test/zns.c:49:13: danger: ‘zr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
libnvme-1.16.1/test/zns.c:49:54: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.16.1/test/zns.c:28:14: acquire_memory: allocated here
libnvme-1.16.1/test/zns.c:29:12: branch_false: following ‘false’ branch (when ‘zr’ is non-NULL)...
libnvme-1.16.1/test/zns.c:32:53: branch_false: ...to here
libnvme-1.16.1/test/zns.c:41:12: branch_false: following ‘false’ branch...
libnvme-1.16.1/test/zns.c:47:29: branch_false: ...to here
libnvme-1.16.1/test/zns.c:49:54: throw: if ‘nvme_ns_get_nsid’ throws an exception...
libnvme-1.16.1/test/zns.c:49:54: danger: ‘zr’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-100.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libnvme-1.16.1-1.fc44 |
| store-results-to | /tmp/tmpuadqilg4/libnvme-1.16.1-1.fc44.tar.xz |
| time-created | 2026-01-08 19:02:32 |
| time-finished | 2026-01-08 19:05:30 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpuadqilg4/libnvme-1.16.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpuadqilg4/libnvme-1.16.1-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |