libnvme-1.15-4.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libnvme-1.15/examples/telemetry-listen.c:34:13: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
libnvme-1.15/examples/telemetry-listen.c:36:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&buf, 0)’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libnvme-1.15/examples/telemetry-listen.c:36:16: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
libnvme-1.15/examples/telemetry-listen.c:48:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libnvme-1.15/examples/telemetry-listen.c:48:15: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
libnvme-1.15/examples/telemetry-listen.c:53:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libnvme-1.15/examples/telemetry-listen.c:53:15: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
libnvme-1.15/examples/telemetry-listen.c:60:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libnvme-1.15/examples/telemetry-listen.c:60:14: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
libnvme-1.15/examples/telemetry-listen.c:66:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libnvme-1.15/examples/telemetry-listen.c:66:15: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
libnvme-1.15/examples/telemetry-listen.c:97:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libnvme-1.15/examples/telemetry-listen.c:97:17: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libnvme-1.15/examples/telemetry-listen.c:113:23: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:164:9: call_function: calling ‘wait_events’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
libnvme-1.15/examples/telemetry-listen.c:149:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: danger: leaks here; was opened at [(14)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libnvme-1.15/examples/telemetry-listen.c:149:9: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: danger: ‘e’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
libnvme-1.15/examples/telemetry-listen.c:150:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: danger: leaks here; was opened at [(14)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libnvme-1.15/examples/telemetry-listen.c:150:17: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: danger: ‘e’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
libnvme-1.15/examples/telemetry-listen.c:151:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_false: following ‘false’ branch (when ‘c’ is NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: danger: leaks here; was opened at [(14)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libnvme-1.15/examples/telemetry-listen.c:151:25: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: allocated here
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: danger: ‘e’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def21]
libnvme-1.15/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-476): [#def22]
libnvme-1.15/examples/telemetry-listen.c:157:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘e’
libnvme-1.15/examples/telemetry-listen.c:125:5: enter_function: entry to ‘main’
libnvme-1.15/examples/telemetry-listen.c:137:12: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:140:9: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:145:13: acquire_memory: this call could return NULL
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: following ‘true’ branch (when ‘__i != 16’)...
libnvme-1.15/examples/telemetry-listen.c:146:9: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:149:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:150:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:151:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/examples/telemetry-listen.c:152:42: branch_true: ...to here
libnvme-1.15/examples/telemetry-listen.c:152:42: call_function: calling ‘open_uevent’ from ‘main’
libnvme-1.15/examples/telemetry-listen.c:152:42: return_function: returning to ‘main’ from ‘open_uevent’
libnvme-1.15/examples/telemetry-listen.c:154:36: branch_false: following ‘false’ branch...
libnvme-1.15/examples/telemetry-listen.c:156:33: branch_false: ...to here
libnvme-1.15/examples/telemetry-listen.c:157:33: danger: ‘e + (long unsigned int)i * 16’ could be NULL: unchecked value from [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def23]
libnvme-1.15/examples/telemetry-listen.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
Error: CPPCHECK_WARNING (CWE-457): [#def24]
libnvme-1.15/redhat-linux-build/libnvme/nvme_wrap.c:872: warning[uninitvar]: Uninitialized variable: buff
Error: CPPCHECK_WARNING (CWE-476): [#def25]
libnvme-1.15/redhat-linux-build/libnvme/nvme_wrap.c:1901: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def26]
libnvme-1.15/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.15/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libnvme-1.15/src/nvme/tree.c:1873:12: enter_function: entry to ‘nvme_ctrl_scan_paths’
libnvme-1.15/src/nvme/tree.c:1878:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/tree.c:1883:21: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1884:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1887:21: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/tree.c:1888:43: branch_true: ...to here
libnvme-1.15/src/nvme/tree.c:1888:17: call_function: calling ‘nvme_ctrl_scan_path’ from ‘nvme_ctrl_scan_paths’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libnvme-1.15/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘head’
libnvme-1.15/src/nvme/tree.c:2802:18: enter_function: entry to ‘nvme_ns_open’
libnvme-1.15/src/nvme/tree.c:2811:12: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/src/nvme/tree.c:2816:16: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2816:16: acquire_memory: allocated here
libnvme-1.15/src/nvme/tree.c:2817:12: branch_false: following ‘false’ branch (when ‘head’ is non-NULL)...
libnvme-1.15/src/nvme/tree.c:2823:9: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2826:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.15/src/nvme/tree.c:2834:15: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2835:12: branch_true: following ‘true’ branch (when ‘ret == 0’)...
libnvme-1.15/src/nvme/tree.c:2836:17: branch_true: ...to here
libnvme-1.15/src/nvme/tree.c:2845:9: call_function: calling ‘nvme_ns_set_generic_name’ from ‘nvme_ns_open’
libnvme-1.15/src/nvme/tree.c:2845:9: return_function: returning to ‘nvme_ns_open’ from ‘nvme_ns_set_generic_name’
libnvme-1.15/src/nvme/tree.c:2847:13: call_function: calling ‘nvme_ns_init’ from ‘nvme_ns_open’
libnvme-1.15/src/nvme/tree.c:2808:30: call_function: inlined call to ‘freep’ from ‘nvme_ns_open’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libnvme-1.15/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘identity’
libnvme-1.15/src/nvme/linux.c:1102:7: enter_function: entry to ‘nvme_generate_tls_key_identity’
libnvme-1.15/src/nvme/linux.c:1112:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/linux.c:1115:20: branch_false: ...to here
libnvme-1.15/src/nvme/linux.c:1115:20: acquire_memory: allocated here
libnvme-1.15/src/nvme/linux.c:1116:12: branch_false: following ‘false’ branch (when ‘identity’ is non-NULL)...
libnvme-1.15/src/nvme/linux.c:1119:15: branch_false: ...to here
libnvme-1.15/src/nvme/linux.c:1120:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/linux.c:1123:9: branch_false: ...to here
libnvme-1.15/src/nvme/linux.c:1124:15: call_function: calling ‘derive_nvme_keys’ from ‘nvme_generate_tls_key_identity’
libnvme-1.15/src/nvme/linux.c:1106:39: call_function: inlined call to ‘freep’ from ‘nvme_generate_tls_key_identity’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libnvme-1.15/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
libnvme-1.15/src/nvme/tree.c:2802:18: enter_function: entry to ‘nvme_ns_open’
libnvme-1.15/src/nvme/tree.c:2810:13: acquire_memory: allocated here
libnvme-1.15/src/nvme/tree.c:2811:12: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/src/nvme/tree.c:2816:16: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2817:12: branch_false: following ‘false’ branch (when ‘head’ is non-NULL)...
libnvme-1.15/src/nvme/tree.c:2823:9: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2826:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.15/src/nvme/tree.c:2834:15: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2835:12: branch_true: following ‘true’ branch (when ‘ret == 0’)...
libnvme-1.15/src/nvme/tree.c:2836:17: branch_true: ...to here
libnvme-1.15/src/nvme/tree.c:2845:9: call_function: calling ‘nvme_ns_set_generic_name’ from ‘nvme_ns_open’
libnvme-1.15/src/nvme/tree.c:2845:9: return_function: returning to ‘nvme_ns_open’ from ‘nvme_ns_set_generic_name’
libnvme-1.15/src/nvme/tree.c:2847:13: call_function: calling ‘nvme_ns_init’ from ‘nvme_ns_open’
libnvme-1.15/src/nvme/tree.c:2808:30: call_function: inlined call to ‘freep’ from ‘nvme_ns_open’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libnvme-1.15/src/nvme/cleanup.h:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
libnvme-1.15/src/nvme/tree.c:1873:12: enter_function: entry to ‘nvme_ctrl_scan_paths’
libnvme-1.15/src/nvme/tree.c:1878:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/tree.c:1883:21: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1884:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1887:21: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/tree.c:1888:43: branch_true: ...to here
libnvme-1.15/src/nvme/tree.c:1888:17: call_function: calling ‘nvme_ctrl_scan_path’ from ‘nvme_ctrl_scan_paths’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libnvme-1.15/src/nvme/cleanup.h:31:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libnvme-1.15/src/nvme/tree.c:1938:14: enter_function: entry to ‘nvme_ctrl_lookup_phy_slot’
libnvme-1.15/src/nvme/tree.c:1946:12: branch_false: following ‘false’ branch (when ‘address’ is non-NULL)...
libnvme-1.15/src/nvme/tree.c:1949:21: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1950:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/tree.c:1956:23: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1957:16: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/tree.c:1958:21: branch_true: ...to here
libnvme-1.15/src/nvme/tree.c:1966:28: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.15/src/nvme/tree.c:1970:32: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1976:40: acquire_memory: allocated here
libnvme-1.15/src/nvme/tree.c:1942:28: call_function: inlined call to ‘cleanup_dir’ from ‘nvme_ctrl_lookup_phy_slot’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
libnvme-1.15/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
libnvme-1.15/src/nvme/util.c:957:5: enter_function: entry to ‘nvme_uuid_random’
libnvme-1.15/src/nvme/util.c:962:13: acquire_resource: opened here
libnvme-1.15/src/nvme/util.c:963:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/util.c:965:13: branch_false: ...to here
libnvme-1.15/src/nvme/util.c:959:26: call_function: inlined call to ‘cleanup_fd’ from ‘nvme_uuid_random’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
libnvme-1.15/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(f, 0)’
libnvme-1.15/src/nvme/fabrics.c:1468:14: enter_function: entry to ‘nvmf_read_file’
libnvme-1.15/src/nvme/fabrics.c:1474:14: acquire_resource: opened here
libnvme-1.15/src/nvme/fabrics.c:1475:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1478:9: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1471:26: call_function: inlined call to ‘cleanup_fd’ from ‘nvmf_read_file’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
libnvme-1.15/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(nvme_uuid_ibm_filename(), 0)’
libnvme-1.15/src/nvme/fabrics.c:1274:12: enter_function: entry to ‘uuid_from_device_tree’
libnvme-1.15/src/nvme/fabrics.c:1279:13: acquire_resource: opened here
libnvme-1.15/src/nvme/fabrics.c:1280:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1283:9: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1276:26: call_function: inlined call to ‘cleanup_fd’ from ‘uuid_from_device_tree’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
libnvme-1.15/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(nvmf_dev, 0)’
libnvme-1.15/src/nvme/fabrics.c:1004:13: enter_function: entry to ‘nvmf_connect_disc_entry’
libnvme-1.15/src/nvme/fabrics.c:1054:21: call_function: calling ‘nvmf_trtype_str’ from ‘nvmf_connect_disc_entry’
libnvme-1.15/src/nvme/fabrics.c:1054:21: return_function: returning to ‘nvmf_connect_disc_entry’ from ‘nvmf_trtype_str’
libnvme-1.15/src/nvme/fabrics.c:1061:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1069:17: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1092:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1098:13: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1098:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/fabrics.c:1099:13: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1099:13: call_function: calling ‘__nvmf_supported_options’ from ‘nvmf_connect_disc_entry’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
libnvme-1.15/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 1)’
libnvme-1.15/src/nvme/linux.c:434:12: enter_function: entry to ‘__nvme_set_attr’
libnvme-1.15/src/nvme/linux.c:438:14: acquire_resource: opened here
libnvme-1.15/src/nvme/linux.c:439:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/linux.c:446:16: branch_false: ...to here
libnvme-1.15/src/nvme/linux.c:436:26: call_function: inlined call to ‘cleanup_fd’ from ‘__nvme_set_attr’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libnvme-1.15/src/nvme/cleanup.h:37:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libnvme-1.15/src/nvme/fabrics.c:1468:14: enter_function: entry to ‘nvmf_read_file’
libnvme-1.15/src/nvme/fabrics.c:1475:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1478:9: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1481:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1483:16: acquire_memory: allocated here
libnvme-1.15/src/nvme/fabrics.c:1471:26: call_function: inlined call to ‘cleanup_fd’ from ‘nvmf_read_file’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libnvme-1.15/src/nvme/fabrics.c:724:12: warning[-Wanalyzer-malloc-leak]: leak of ‘*((struct nvme_root *)r).options’
libnvme-1.15/src/nvme/fabrics.c:1004:13: enter_function: entry to ‘nvmf_connect_disc_entry’
libnvme-1.15/src/nvme/fabrics.c:1054:21: call_function: calling ‘nvmf_trtype_str’ from ‘nvmf_connect_disc_entry’
libnvme-1.15/src/nvme/fabrics.c:1054:21: return_function: returning to ‘nvmf_connect_disc_entry’ from ‘nvmf_trtype_str’
libnvme-1.15/src/nvme/fabrics.c:1061:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1069:17: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1092:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1098:13: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1098:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/fabrics.c:1099:13: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1099:13: call_function: calling ‘__nvmf_supported_options’ from ‘nvmf_connect_disc_entry’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
libnvme-1.15/src/nvme/fabrics.c:1339:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&filename, 0)’
libnvme-1.15/src/nvme/fabrics.c:1326:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1328:16: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/fabrics.c:1332:21: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1332:20: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1334:62: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1335:21: acquire_resource: opened here
libnvme-1.15/src/nvme/fabrics.c:1336:20: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1338:23: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1339:17: danger: ‘open(&filename, 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
libnvme-1.15/src/nvme/fabrics.c:1351:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&filename, 0)’
libnvme-1.15/src/nvme/fabrics.c:1326:12: branch_false: following ‘false’ branch...
branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1328:16: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/fabrics.c:1332:21: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1347:21: acquire_resource: opened here
libnvme-1.15/src/nvme/fabrics.c:1351:17: danger: ‘open(&filename, 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def42]
libnvme-1.15/src/nvme/fabrics.c:1795:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*c.dctype’ where non-null expected
libnvme-1.15/src/nvme/fabrics.c:1789:6: enter_function: entry to ‘nvmf_is_registration_supported’
libnvme-1.15/src/nvme/fabrics.c:1792:21: call_function: calling ‘nvme_fetch_cntrltype_dctype_from_id’ from ‘nvmf_is_registration_supported’
libnvme-1.15/src/nvme/fabrics.c:1792:21: return_function: returning to ‘nvmf_is_registration_supported’ from ‘nvme_fetch_cntrltype_dctype_from_id’
libnvme-1.15/src/nvme/fabrics.c:1792:20: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1795:24: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1795:17: danger: argument 1 (‘*c.dctype’) from [(12)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/11) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libnvme-1.15/src/nvme/fabrics.c:1827:22: warning[-Wanalyzer-malloc-leak]: leak of ‘unescape_uri(elem, 0)’
libnvme-1.15/src/nvme/fabrics.c:1841:26: enter_function: entry to ‘nvme_parse_uri’
libnvme-1.15/src/nvme/fabrics.c:1865:12: branch_false: following ‘false’ branch (when ‘uri’ is non-NULL)...
libnvme-1.15/src/nvme/fabrics.c:1868:13: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1868:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1875:13: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1875:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1883:16: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1891:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1904:13: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1904:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/fabrics.c:1908:21: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1909:20: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1914:21: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1915:20: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/fabrics.c:1921:29: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1928:20: branch_true: following ‘true’ branch (when ‘elem’ is non-NULL)...
libnvme-1.15/src/nvme/fabrics.c:1929:25: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1929:51: call_function: calling ‘unescape_uri’ from ‘nvme_parse_uri’
libnvme-1.15/src/nvme/fabrics.c:1929:51: return_function: returning to ‘nvme_parse_uri’ from ‘unescape_uri’
libnvme-1.15/src/nvme/fabrics.c:1827:22: danger: ‘unescape_uri(elem, 0)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libnvme-1.15/src/nvme/fabrics.c:1831:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
libnvme-1.15/src/nvme/fabrics.c:1826:9: branch_false: following ‘false’ branch (when ‘len > 0’)...
libnvme-1.15/src/nvme/fabrics.c:1827:22: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1827:15: acquire_memory: this call could return NULL
libnvme-1.15/src/nvme/fabrics.c:1828:28: branch_true: following ‘true’ branch (when ‘l > i’)...
libnvme-1.15/src/nvme/fabrics.c:1829:24: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1829:20: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/fabrics.c:1831:25: danger: ‘dst + (sizetype)j’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
libnvme-1.15/src/nvme/fabrics.c:1835:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
libnvme-1.15/src/nvme/fabrics.c:1826:9: branch_false: following ‘false’ branch (when ‘len > 0’)...
libnvme-1.15/src/nvme/fabrics.c:1827:22: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1827:15: acquire_memory: this call could return NULL
libnvme-1.15/src/nvme/fabrics.c:1828:28: branch_true: following ‘true’ branch (when ‘l > i’)...
libnvme-1.15/src/nvme/fabrics.c:1829:24: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1835:25: danger: ‘dst + (sizetype)j’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def46]
libnvme-1.15/src/nvme/fabrics.c:1837: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dst
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
libnvme-1.15/src/nvme/fabrics.c:1837:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dst’
libnvme-1.15/src/nvme/fabrics.c:1826:9: branch_true: following ‘true’ branch (when ‘len <= 0’)...
libnvme-1.15/src/nvme/fabrics.c:1826:29: branch_true: ...to here
libnvme-1.15/src/nvme/fabrics.c:1827:15: acquire_memory: this call could return NULL
libnvme-1.15/src/nvme/fabrics.c:1828:28: branch_false: following ‘false’ branch (when ‘l <= i’)...
libnvme-1.15/src/nvme/fabrics.c:1837:12: branch_false: ...to here
libnvme-1.15/src/nvme/fabrics.c:1837:9: danger: ‘dst + (sizetype)j’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-758): [#def48]
libnvme-1.15/src/nvme/ioctl.c:2090: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
libnvme-1.15/src/nvme/ioctl.h:608:16: warning[-Wanalyzer-malloc-leak]: leak of ‘descs’
libnvme-1.15/test/test.c:274:12: enter_function: entry to ‘test_namespace’
libnvme-1.15/test/test.c:283:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/test.c:286:9: branch_false: ...to here
libnvme-1.15/test/test.c:296:17: acquire_memory: allocated here
libnvme-1.15/test/test.c:297:12: branch_false: following ‘false’ branch (when ‘descs’ is non-NULL)...
libnvme-1.15/test/test.c:300:15: call_function: inlined call to ‘nvme_identify_ns_descs’ from ‘test_namespace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libnvme-1.15/src/nvme/ioctl.h:608:16: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
libnvme-1.15/test/ioctl/identify.c:81:13: enter_function: entry to ‘test_ns_descs’
libnvme-1.15/test/ioctl/identify.c:95:14: acquire_memory: allocated here
libnvme-1.15/test/ioctl/identify.c:96:9: branch_true: following ‘true’ branch (when ‘id’ is non-NULL)...
libnvme-1.15/test/ioctl/identify.c:97:9: branch_true: ...to here
libnvme-1.15/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): [#def51]
libnvme-1.15/src/nvme/ioctl.h:988:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.15/test/zns.c:63:5: enter_function: entry to ‘main’
libnvme-1.15/test/zns.c:72:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/zns.c:75:9: branch_false: ...to here
libnvme-1.15/test/zns.c:75:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/test/zns.c:76:17: branch_true: ...to here
libnvme-1.15/test/zns.c:76:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/test/zns.c:77:25: branch_true: ...to here
libnvme-1.15/test/zns.c:77:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/test/zns.c:78:33: branch_true: ...to here
libnvme-1.15/test/zns.c:78:33: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/test/zns.c:79:45: branch_true: ...to here
libnvme-1.15/test/zns.c:79:44: branch_true: following ‘true’ branch...
libnvme-1.15/test/zns.c:80:49: branch_true: ...to here
libnvme-1.15/test/zns.c:80:49: call_function: calling ‘show_zns_properties’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libnvme-1.15/src/nvme/ioctl.h:1020:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.15/test/zns.c:63:5: enter_function: entry to ‘main’
libnvme-1.15/test/zns.c:72:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/zns.c:75:9: branch_false: ...to here
libnvme-1.15/test/zns.c:75:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/test/zns.c:76:17: branch_true: ...to here
libnvme-1.15/test/zns.c:76:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/test/zns.c:77:25: branch_true: ...to here
libnvme-1.15/test/zns.c:77:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/test/zns.c:78:33: branch_true: ...to here
libnvme-1.15/test/zns.c:78:33: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/test/zns.c:79:45: branch_true: ...to here
libnvme-1.15/test/zns.c:79:44: branch_true: following ‘true’ branch...
libnvme-1.15/test/zns.c:80:49: branch_true: ...to here
libnvme-1.15/test/zns.c:80:49: call_function: calling ‘show_zns_properties’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libnvme-1.15/src/nvme/ioctl.h:4512:16: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.15/test/zns.c:63:5: enter_function: entry to ‘main’
libnvme-1.15/test/zns.c:72:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/zns.c:75:9: branch_false: ...to here
libnvme-1.15/test/zns.c:75:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/test/zns.c:76:17: branch_true: ...to here
libnvme-1.15/test/zns.c:76:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/test/zns.c:77:25: branch_true: ...to here
libnvme-1.15/test/zns.c:77:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/test/zns.c:78:33: branch_true: ...to here
libnvme-1.15/test/zns.c:78:33: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/test/zns.c:79:45: branch_true: ...to here
libnvme-1.15/test/zns.c:79:44: branch_true: following ‘true’ branch...
libnvme-1.15/test/zns.c:80:49: branch_true: ...to here
libnvme-1.15/test/zns.c:80:49: call_function: calling ‘show_zns_properties’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
libnvme-1.15/src/nvme/json.c:251:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(config_file, 0)’
libnvme-1.15/src/nvme/json.c:238:5: enter_function: entry to ‘json_read_config’
libnvme-1.15/src/nvme/json.c:243:14: acquire_resource: opened here
libnvme-1.15/src/nvme/json.c:244:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/json.c:249:21: branch_false: ...to here
libnvme-1.15/src/nvme/json.c:249:21: call_function: calling ‘parse_json’ from ‘json_read_config’
libnvme-1.15/src/nvme/json.c:249:21: return_function: returning to ‘json_read_config’ from ‘parse_json’
libnvme-1.15/src/nvme/json.c:251:12: danger: ‘open(config_file, 0)’ leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
libnvme-1.15/src/nvme/linux.c:474:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
libnvme-1.15/src/nvme/linux.c:467:14: acquire_resource: opened here
libnvme-1.15/src/nvme/linux.c:468:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/linux.c:471:15: branch_false: ...to here
libnvme-1.15/src/nvme/linux.c:474:12: danger: ‘open(path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def56]
libnvme-1.15/src/nvme/linux.c:1318: error[memleak]: Memory leak: identity
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libnvme-1.15/src/nvme/linux.c:1616:16: warning[-Wanalyzer-malloc-leak]: leak of ‘encoded_key’
libnvme-1.15/src/nvme/linux.c:1585:20: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/linux.c:1599:9: branch_false: ...to here
libnvme-1.15/src/nvme/linux.c:1609:23: acquire_memory: allocated here
libnvme-1.15/src/nvme/linux.c:1610:12: branch_false: following ‘false’ branch (when ‘encoded_key’ is non-NULL)...
libnvme-1.15/src/nvme/linux.c:1614:9: branch_false: ...to here
libnvme-1.15/src/nvme/linux.c:1616:16: danger: ‘encoded_key’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
libnvme-1.15/src/nvme/mi-mctp.c:146:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sd’
libnvme-1.15/src/nvme/mi-mctp.c:137:14: acquire_resource: socket created here
libnvme-1.15/src/nvme/mi-mctp.c:138:12: branch_false: following ‘false’ branch (when ‘sd >= 0’)...
libnvme-1.15/src/nvme/mi-mctp.c:141:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:146:14: danger: ‘sd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libnvme-1.15/src/nvme/mi-mctp.c:535:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libnvme-1.15/src/nvme/mi-mctp.c:453:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:459:13: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:459:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:464:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:497:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:506:20: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:507:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:508:29: branch_true: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:509:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libnvme-1.15/src/nvme/mi-mctp.c:517:17: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:535: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): [#def60]
libnvme-1.15/src/nvme/mi-mctp.c:540:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libnvme-1.15/src/nvme/mi-mctp.c:453:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:459:13: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:459:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:464:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:497:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:506:20: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:507:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:508:29: branch_true: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:509:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libnvme-1.15/src/nvme/mi-mctp.c:517:17: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:536:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:537:21: branch_true: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:540: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): [#def61]
libnvme-1.15/src/nvme/mi-mctp.c:547:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libnvme-1.15/src/nvme/mi-mctp.c:453:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:459:13: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:459:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:464:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:497:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:506:20: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:507:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:508:29: branch_true: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:509:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libnvme-1.15/src/nvme/mi-mctp.c:517:17: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:546:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:547:17: branch_true: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:547: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): [#def62]
libnvme-1.15/src/nvme/mi-mctp.c:554:15: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libnvme-1.15/src/nvme/mi-mctp.c:453:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:459:13: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:459:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:464:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:497:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:506:20: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:507:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:508:29: branch_true: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:509:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libnvme-1.15/src/nvme/mi-mctp.c:517:17: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:546:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:554:15: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:554: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): [#def63]
libnvme-1.15/src/nvme/mi-mctp.c:745:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libnvme-1.15/src/nvme/mi-mctp.c:715:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:718:16: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:719:12: branch_false: following ‘false’ branch (when ‘mctp’ is non-NULL)...
libnvme-1.15/src/nvme/mi-mctp.c:724:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:729:26: acquire_memory: allocated here
libnvme-1.15/src/nvme/mi-mctp.c:730:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:735:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:737:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:742:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:745: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): [#def64]
libnvme-1.15/src/nvme/mi-mctp.c:745:20: warning[-Wanalyzer-malloc-leak]: leak of ‘mctp’
libnvme-1.15/src/nvme/mi-mctp.c:715:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:718:16: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:718:16: acquire_memory: allocated here
libnvme-1.15/src/nvme/mi-mctp.c:719:12: branch_false: following ‘false’ branch (when ‘mctp’ is non-NULL)...
libnvme-1.15/src/nvme/mi-mctp.c:724:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:730:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:735:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:737:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi-mctp.c:742:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi-mctp.c:745: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): [#def65]
libnvme-1.15/src/nvme/mi.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘enabled_list’
libnvme-1.15/src/nvme/mi.c:2472:5: enter_function: entry to ‘nvme_mi_aem_enable’
libnvme-1.15/src/nvme/mi.c:2476:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2481:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2485:40: branch_false: ...to here
libnvme-1.15/src/nvme/mi.c:2493:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2495:14: branch_false: ...to here
libnvme-1.15/src/nvme/mi.c:2495:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2498:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi.c:2503:14: call_function: calling ‘aem_disable_enabled’ from ‘nvme_mi_aem_enable’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
libnvme-1.15/src/nvme/mi.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
libnvme-1.15/src/nvme/mi.c:2380:12: enter_function: entry to ‘aem_sync’
libnvme-1.15/src/nvme/mi.c:2396:58: acquire_memory: allocated here
libnvme-1.15/src/nvme/mi.c:2398:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
libnvme-1.15/src/nvme/mi.c:2401:9: branch_false: ...to here
libnvme-1.15/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): [#def67]
libnvme-1.15/src/nvme/mi.c:544:14: warning[-Wanalyzer-malloc-leak]: leak of ‘enabled_list’
libnvme-1.15/src/nvme/mi.c:2472:5: enter_function: entry to ‘nvme_mi_aem_enable’
libnvme-1.15/src/nvme/mi.c:2476:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2481:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2485:40: branch_false: ...to here
libnvme-1.15/src/nvme/mi.c:2493:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2495:14: branch_false: ...to here
libnvme-1.15/src/nvme/mi.c:2495:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2498:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi.c:2503:14: call_function: calling ‘aem_disable_enabled’ from ‘nvme_mi_aem_enable’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
libnvme-1.15/src/nvme/mi.c:544:14: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
libnvme-1.15/src/nvme/mi.c:2380:12: enter_function: entry to ‘aem_sync’
libnvme-1.15/src/nvme/mi.c:2396:58: acquire_memory: allocated here
libnvme-1.15/src/nvme/mi.c:2398:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
libnvme-1.15/src/nvme/mi.c:2401:9: branch_false: ...to here
libnvme-1.15/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): [#def69]
libnvme-1.15/src/nvme/mi.c:550:17: warning[-Wanalyzer-malloc-leak]: leak of ‘enabled_list’
libnvme-1.15/src/nvme/mi.c:2546:5: enter_function: entry to ‘nvme_mi_aem_get_enabled’
libnvme-1.15/src/nvme/mi.c:2549:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/mi.c:2555:16: branch_false: ...to here
libnvme-1.15/src/nvme/mi.c:2556:59: acquire_memory: allocated here
libnvme-1.15/src/nvme/mi.c:2558:12: branch_false: following ‘false’ branch (when ‘enabled_list’ is non-NULL)...
libnvme-1.15/src/nvme/mi.c:2561:14: branch_false: ...to here
libnvme-1.15/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): [#def70]
libnvme-1.15/src/nvme/mi.c:550:17: warning[-Wanalyzer-malloc-leak]: leak of ‘request’
libnvme-1.15/src/nvme/mi.c:2380:12: enter_function: entry to ‘aem_sync’
libnvme-1.15/src/nvme/mi.c:2396:58: acquire_memory: allocated here
libnvme-1.15/src/nvme/mi.c:2398:12: branch_false: following ‘false’ branch (when ‘request’ is non-NULL)...
libnvme-1.15/src/nvme/mi.c:2401:9: branch_false: ...to here
libnvme-1.15/src/nvme/mi.c:2416:18: call_function: calling ‘nvme_mi_mi_config_set_async_event’ from ‘aem_sync’
Error: CPPCHECK_WARNING (CWE-758): [#def71]
libnvme-1.15/src/nvme/mi.c:1927: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libnvme-1.15/src/nvme/nbft.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘discovery’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libnvme-1.15/src/nvme/nbft.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libnvme-1.15/src/nvme/nbft.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ssns’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libnvme-1.15/src/nvme/nbft.c:104:25: warning[-Wanalyzer-malloc-leak]: leak of ‘discovery’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libnvme-1.15/src/nvme/nbft.c:111:25: warning[-Wanalyzer-malloc-leak]: leak of ‘discovery’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libnvme-1.15/src/nvme/nbft.c:224:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ssns’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
libnvme-1.15/src/nvme/nbft.c:346:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
libnvme-1.15/src/nvme/nbft.c:348:9: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libnvme-1.15/src/nvme/nbft.c:351:17: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
libnvme-1.15/src/nvme/nbft.c:423:17: warning[-Wanalyzer-malloc-leak]: leak of ‘hfi’
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-131): [#def82]
libnvme-1.15/src/nvme/nbft.c:511:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
libnvme-1.15/src/nvme/nbft.c:689:5: enter_function: entry to ‘nvme_nbft_read’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:749:29: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:753:13: call_function: calling ‘parse_raw_nbft’ from ‘nvme_nbft_read’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
libnvme-1.15/src/nvme/nbft.c:707:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:707:13: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
libnvme-1.15/src/nvme/nbft.c:707:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:707:13: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
libnvme-1.15/src/nvme/nbft.c:709:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/nbft.c:709:17: branch_true: ...to here
libnvme-1.15/src/nvme/nbft.c:709:17: 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): [#def86]
libnvme-1.15/src/nvme/nbft.c:709:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/nbft.c:709:17: branch_true: ...to here
libnvme-1.15/src/nvme/nbft.c:709:17: 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): [#def87]
libnvme-1.15/src/nvme/nbft.c:716:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:716:25: 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): [#def88]
libnvme-1.15/src/nvme/nbft.c:716:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:716:25: 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): [#def89]
libnvme-1.15/src/nvme/nbft.c:717:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:717:9: 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): [#def90]
libnvme-1.15/src/nvme/nbft.c:717:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:717:9: 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): [#def91]
libnvme-1.15/src/nvme/nbft.c:721:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_true: following ‘true’ branch (when ‘raw_nbft’ is NULL)...
libnvme-1.15/src/nvme/nbft.c:721:17: branch_true: ...to here
libnvme-1.15/src/nvme/nbft.c:721:17: 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): [#def92]
libnvme-1.15/src/nvme/nbft.c:721:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_true: following ‘true’ branch (when ‘raw_nbft’ is NULL)...
libnvme-1.15/src/nvme/nbft.c:721:17: branch_true: ...to here
libnvme-1.15/src/nvme/nbft.c:721:17: 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): [#def93]
libnvme-1.15/src/nvme/nbft.c:729:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_resource: opened here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/nbft.c:729:17: branch_true: ...to here
libnvme-1.15/src/nvme/nbft.c:729: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): [#def94]
libnvme-1.15/src/nvme/nbft.c:729:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
libnvme-1.15/src/nvme/nbft.c:699:23: acquire_memory: allocated here
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/nbft.c:729:17: branch_true: ...to here
libnvme-1.15/src/nvme/nbft.c:729:17: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libnvme-1.15/src/nvme/nbft.c:729:17: warning[-Wanalyzer-malloc-leak]: leak of ‘raw_nbft’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:719:20: acquire_memory: allocated here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/nbft.c:729:17: branch_true: ...to here
libnvme-1.15/src/nvme/nbft.c:729:17: danger: ‘raw_nbft’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
libnvme-1.15/src/nvme/nbft.c:743:17: warning[-Wanalyzer-malloc-leak]: leak of ‘raw_nbft’
libnvme-1.15/src/nvme/nbft.c:700:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:707:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:708:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:716:25: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:719:20: acquire_memory: allocated here
libnvme-1.15/src/nvme/nbft.c:720:12: branch_false: following ‘false’ branch (when ‘raw_nbft’ is non-NULL)...
libnvme-1.15/src/nvme/nbft.c:727:13: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:728:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/nbft.c:736:9: branch_false: ...to here
libnvme-1.15/src/nvme/nbft.c:742:12: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/nbft.c:743:17: branch_true: ...to here
libnvme-1.15/src/nvme/nbft.c:743:17: danger: ‘raw_nbft’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libnvme-1.15/src/nvme/private.h:340:12: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path)’
libnvme-1.15/src/nvme/tree.c:2096:5: enter_function: entry to ‘nvme_init_ctrl’
libnvme-1.15/src/nvme/tree.c:2103:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.15/src/nvme/tree.c:2107:15: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2108:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.15/src/nvme/tree.c:2113:15: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2113:15: call_function: calling ‘nvme_reconfigure_ctrl’ from ‘nvme_init_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def98]
libnvme-1.15/src/nvme/tree.c:111:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*ents.num’
libnvme-1.15/src/nvme/tree.c:1910:14: enter_function: entry to ‘nvme_ctrl_lookup_subsystem_name’
libnvme-1.15/src/nvme/tree.c:1914:42: call_function: calling ‘cleanup_dirents’ from ‘nvme_ctrl_lookup_subsystem_name’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
libnvme-1.15/src/nvme/tree.c:1898:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘r’
libnvme-1.15/src/nvme/tree.c:2305:6: enter_function: entry to ‘nvme_rescan_ctrl’
libnvme-1.15/src/nvme/tree.c:2307:25: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/tree.c:2307:33: branch_true: ...to here
libnvme-1.15/src/nvme/tree.c:2307:25: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/tree.c:2308:12: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2308:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/tree.c:2310:9: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:2310:9: call_function: calling ‘nvme_ctrl_scan_namespaces’ from ‘nvme_rescan_ctrl’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def100]
libnvme-1.15/src/nvme/tree.c:1975:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘strndup(address, 10)’ where non-null expected
libnvme-1.15/src/nvme/tree.c:1946:12: branch_false: following ‘false’ branch (when ‘address’ is non-NULL)...
libnvme-1.15/src/nvme/tree.c:1949:21: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1950:12: branch_false: following ‘false’ branch...
libnvme-1.15/src/nvme/tree.c:1956:23: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1956:23: acquire_memory: this call could return NULL
libnvme-1.15/src/nvme/tree.c:1957:16: branch_true: following ‘true’ branch...
libnvme-1.15/src/nvme/tree.c:1958:21: branch_true: ...to here
libnvme-1.15/src/nvme/tree.c:1966:28: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
libnvme-1.15/src/nvme/tree.c:1970:32: branch_false: ...to here
libnvme-1.15/src/nvme/tree.c:1975:29: danger: argument 2 (‘strndup(address, 10)’) from [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-758): [#def101]
libnvme-1.15/src/nvme/types.h:1737: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def102]
libnvme-1.15/src/nvme/types.h:9460: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def103]
libnvme-1.15/src/nvme/types.h:10137: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-404): [#def104]
libnvme-1.15/src/nvme/util.c:798: error[resourceLeak]: Resource leak: file
Error: CPPCHECK_WARNING (CWE-404): [#def105]
libnvme-1.15/src/nvme/util.c:804: error[resourceLeak]: Resource leak: file
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
libnvme-1.15/test/ioctl/ana.c:89:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:87:36: acquire_memory: allocated here
libnvme-1.15/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): [#def107]
libnvme-1.15/test/ioctl/ana.c:128:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:126:36: acquire_memory: allocated here
libnvme-1.15/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): [#def108]
libnvme-1.15/test/ioctl/ana.c:170:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:168:36: acquire_memory: allocated here
libnvme-1.15/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): [#def109]
libnvme-1.15/test/ioctl/ana.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:215:36: acquire_memory: allocated here
libnvme-1.15/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): [#def110]
libnvme-1.15/test/ioctl/ana.c:307:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:305:36: acquire_memory: allocated here
libnvme-1.15/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): [#def111]
libnvme-1.15/test/ioctl/ana.c:378:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:376:36: acquire_memory: allocated here
libnvme-1.15/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): [#def112]
libnvme-1.15/test/ioctl/ana.c:452:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:450:36: acquire_memory: allocated here
libnvme-1.15/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): [#def113]
libnvme-1.15/test/ioctl/ana.c:552:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:550:36: acquire_memory: allocated here
libnvme-1.15/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): [#def114]
libnvme-1.15/test/ioctl/ana.c:602:9: warning[-Wanalyzer-malloc-leak]: leak of ‘log’
libnvme-1.15/test/ioctl/ana.c:600:36: acquire_memory: allocated here
libnvme-1.15/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): [#def115]
libnvme-1.15/test/ioctl/identify.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
libnvme-1.15/test/ioctl/identify.c:95:14: acquire_memory: allocated here
libnvme-1.15/test/ioctl/identify.c:96:9: branch_true: following ‘true’ branch (when ‘id’ is non-NULL)...
libnvme-1.15/test/ioctl/identify.c:97:9: branch_true: ...to here
libnvme-1.15/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): [#def116]
libnvme-1.15/test/ioctl/misc.c:1221: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-562): [#def117]
libnvme-1.15/test/mi-mctp.c:545: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def118]
libnvme-1.15/test/mi-mctp.c:563: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def119]
libnvme-1.15/test/mi-mctp.c:588: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def120]
libnvme-1.15/test/mi-mctp.c:677: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def121]
libnvme-1.15/test/mi-mctp.c:680: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def122]
libnvme-1.15/test/mi-mctp.c:706: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def123]
libnvme-1.15/test/mi-mctp.c:709: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def124]
libnvme-1.15/test/mi-mctp.c:735: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def125]
libnvme-1.15/test/mi-mctp.c:738: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def126]
libnvme-1.15/test/mi-mctp.c:1158: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def127]
libnvme-1.15/test/mi-mctp.c:1261: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def128]
libnvme-1.15/test/mi-mctp.c:1279: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def129]
libnvme-1.15/test/mi-mctp.c:1297: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def130]
libnvme-1.15/test/mi-mctp.c:1343: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-457): [#def131]
libnvme-1.15/test/mi.c:1013: warning[uninitvar]: Uninitialized variable: exp
Error: CPPCHECK_WARNING (CWE-476): [#def132]
libnvme-1.15/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): [#def133]
libnvme-1.15/test/mock-ifaddrs.c:38:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘storage’
libnvme-1.15/test/mock-ifaddrs.c:107:45: acquire_memory: this call could return NULL
libnvme-1.15/test/mock-ifaddrs.c:110:9: call_function: inlined call to ‘init_entry’ from ‘getifaddrs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
libnvme-1.15/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.15/test/mock-ifaddrs.c:107:45: acquire_memory: allocated here
libnvme-1.15/test/mock-ifaddrs.c:110:9: call_function: inlined call to ‘init_entry’ from ‘getifaddrs’
libnvme-1.15/test/mock-ifaddrs.c:111:9: call_function: calling ‘init_entry’ from ‘getifaddrs’
libnvme-1.15/test/mock-ifaddrs.c:111:9: return_function: returning to ‘getifaddrs’ from ‘init_entry’
libnvme-1.15/test/mock-ifaddrs.c:115:9: call_function: calling ‘init_entry’ from ‘getifaddrs’
libnvme-1.15/test/mock-ifaddrs.c:115:9: return_function: returning to ‘getifaddrs’ from ‘init_entry’
libnvme-1.15/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): [#def135]
libnvme-1.15/test/zns.c:32:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.15/test/zns.c:63:5: enter_function: entry to ‘main’
libnvme-1.15/test/zns.c:72:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/zns.c:75:9: branch_false: ...to here
libnvme-1.15/test/zns.c:75:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/test/zns.c:76:17: branch_true: ...to here
libnvme-1.15/test/zns.c:76:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/test/zns.c:77:25: branch_true: ...to here
libnvme-1.15/test/zns.c:77:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/test/zns.c:78:33: branch_true: ...to here
libnvme-1.15/test/zns.c:78:33: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/test/zns.c:79:45: branch_true: ...to here
libnvme-1.15/test/zns.c:79:44: branch_true: following ‘true’ branch...
libnvme-1.15/test/zns.c:80:49: branch_true: ...to here
libnvme-1.15/test/zns.c:80:49: call_function: calling ‘show_zns_properties’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
libnvme-1.15/test/zns.c:32:53: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.15/test/zns.c:63:5: enter_function: entry to ‘main’
libnvme-1.15/test/zns.c:72:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/zns.c:75:9: branch_false: ...to here
libnvme-1.15/test/zns.c:75:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/test/zns.c:76:17: branch_true: ...to here
libnvme-1.15/test/zns.c:76:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/test/zns.c:77:25: branch_true: ...to here
libnvme-1.15/test/zns.c:77:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/test/zns.c:78:33: branch_true: ...to here
libnvme-1.15/test/zns.c:78:33: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/test/zns.c:79:45: branch_true: ...to here
libnvme-1.15/test/zns.c:79:44: branch_true: following ‘true’ branch...
libnvme-1.15/test/zns.c:80:49: branch_true: ...to here
libnvme-1.15/test/zns.c:80:49: call_function: calling ‘show_zns_properties’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libnvme-1.15/test/zns.c:41:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.15/test/zns.c:63:5: enter_function: entry to ‘main’
libnvme-1.15/test/zns.c:72:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/zns.c:75:9: branch_false: ...to here
libnvme-1.15/test/zns.c:75:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/test/zns.c:76:17: branch_true: ...to here
libnvme-1.15/test/zns.c:76:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/test/zns.c:77:25: branch_true: ...to here
libnvme-1.15/test/zns.c:77:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/test/zns.c:78:33: branch_true: ...to here
libnvme-1.15/test/zns.c:78:33: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/test/zns.c:79:45: branch_true: ...to here
libnvme-1.15/test/zns.c:79:44: branch_true: following ‘true’ branch...
libnvme-1.15/test/zns.c:80:49: branch_true: ...to here
libnvme-1.15/test/zns.c:80:49: call_function: calling ‘show_zns_properties’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
libnvme-1.15/test/zns.c:49:13: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.15/test/zns.c:63:5: enter_function: entry to ‘main’
libnvme-1.15/test/zns.c:72:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/zns.c:75:9: branch_false: ...to here
libnvme-1.15/test/zns.c:75:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/test/zns.c:76:17: branch_true: ...to here
libnvme-1.15/test/zns.c:76:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/test/zns.c:77:25: branch_true: ...to here
libnvme-1.15/test/zns.c:77:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/test/zns.c:78:33: branch_true: ...to here
libnvme-1.15/test/zns.c:78:33: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/test/zns.c:79:45: branch_true: ...to here
libnvme-1.15/test/zns.c:79:44: branch_true: following ‘true’ branch...
libnvme-1.15/test/zns.c:80:49: branch_true: ...to here
libnvme-1.15/test/zns.c:80:49: call_function: calling ‘show_zns_properties’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
libnvme-1.15/test/zns.c:49:54: warning[-Wanalyzer-malloc-leak]: leak of ‘zr’
libnvme-1.15/test/zns.c:63:5: enter_function: entry to ‘main’
libnvme-1.15/test/zns.c:72:12: branch_false: following ‘false’ branch...
libnvme-1.15/test/zns.c:75:9: branch_false: ...to here
libnvme-1.15/test/zns.c:75:9: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
libnvme-1.15/test/zns.c:76:17: branch_true: ...to here
libnvme-1.15/test/zns.c:76:17: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libnvme-1.15/test/zns.c:77:25: branch_true: ...to here
libnvme-1.15/test/zns.c:77:25: branch_true: following ‘true’ branch (when ‘c’ is non-NULL)...
libnvme-1.15/test/zns.c:78:33: branch_true: ...to here
libnvme-1.15/test/zns.c:78:33: branch_true: following ‘true’ branch (when ‘n’ is non-NULL)...
libnvme-1.15/test/zns.c:79:45: branch_true: ...to here
libnvme-1.15/test/zns.c:79:44: branch_true: following ‘true’ branch...
libnvme-1.15/test/zns.c:80:49: branch_true: ...to here
libnvme-1.15/test/zns.c:80:49: call_function: calling ‘show_zns_properties’ from ‘main’
Scan Properties
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| 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-104.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-gcc-latest-x86_64 |
| project-name | libnvme-1.15-4.fc44 |
| store-results-to | /tmp/tmp2d0yl7so/libnvme-1.15-4.fc44.tar.xz |
| time-created | 2025-10-28 19:13:22 |
| time-finished | 2025-10-28 19:16:26 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp2d0yl7so/libnvme-1.15-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp2d0yl7so/libnvme-1.15-4.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |