babeltrace-1.5.11-15.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:724:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:8240:22: enter_function: entry to ‘_wrap__bt_ctf_writer_create’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:8250:6: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:8252:10: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:8252:10: call_function: calling ‘SWIG_AsCharPtrAndSize’ from ‘_wrap__bt_ctf_writer_create’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:1452:39: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5267:22: enter_function: entry to ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: return_function: returning to ‘_wrap_new_bt_iter_pos_u’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: acquire_memory: allocated here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5274:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_bt_iter_pos_u’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:1901:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5304:22: enter_function: entry to ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: return_function: returning to ‘bt_iter_pos_u_swigregister’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:3: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:52: call_function: calling ‘SwigPyClientData_New’ from ‘bt_iter_pos_u_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:1904:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5304:22: enter_function: entry to ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: return_function: returning to ‘bt_iter_pos_u_swigregister’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:3: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:52: call_function: calling ‘SwigPyClientData_New’ from ‘bt_iter_pos_u_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:1909:22: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5304:22: enter_function: entry to ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: return_function: returning to ‘bt_iter_pos_u_swigregister’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:3: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:52: call_function: calling ‘SwigPyClientData_New’ from ‘bt_iter_pos_u_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:1911:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5304:22: enter_function: entry to ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: return_function: returning to ‘bt_iter_pos_u_swigregister’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:3: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:52: call_function: calling ‘SwigPyClientData_New’ from ‘bt_iter_pos_u_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:1927:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5304:22: enter_function: entry to ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: return_function: returning to ‘bt_iter_pos_u_swigregister’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:3: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:52: call_function: calling ‘SwigPyClientData_New’ from ‘bt_iter_pos_u_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:1928:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5304:22: enter_function: entry to ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: return_function: returning to ‘bt_iter_pos_u_swigregister’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:3: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:52: call_function: calling ‘SwigPyClientData_New’ from ‘bt_iter_pos_u_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:1929:7: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5304:22: enter_function: entry to ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘bt_iter_pos_u_swigregister’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:8: return_function: returning to ‘bt_iter_pos_u_swigregister’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5306:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:3: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5307:52: call_function: calling ‘SwigPyClientData_New’ from ‘bt_iter_pos_u_swigregister’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:2440:22: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5267:22: enter_function: entry to ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: return_function: returning to ‘_wrap_new_bt_iter_pos_u’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: acquire_memory: allocated here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5274:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_bt_iter_pos_u’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:2453:17: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5267:22: enter_function: entry to ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: return_function: returning to ‘_wrap_new_bt_iter_pos_u’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: acquire_memory: allocated here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5274:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_bt_iter_pos_u’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:2462:24: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5267:22: enter_function: entry to ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: return_function: returning to ‘_wrap_new_bt_iter_pos_u’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: acquire_memory: allocated here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5274:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_bt_iter_pos_u’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:3136:16: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5267:22: enter_function: entry to ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_new_bt_iter_pos_u’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:8: return_function: returning to ‘_wrap_new_bt_iter_pos_u’ from ‘SWIG_Python_UnpackTuple’
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5272:6: branch_false: following ‘false’ branch...
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: branch_false: ...to here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5273:29: acquire_memory: allocated here
babeltrace-1.5.11/bindings/python/babeltrace/babeltrace_wrap.c:5274:15: call_function: calling ‘SWIG_Python_NewPointerObj’ from ‘_wrap_new_bt_iter_pos_u’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
babeltrace-1.5.11/converter/babeltrace-log.c:323:15: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/converter/babeltrace-log.c:386:5: enter_function: entry to ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:394:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:400:13: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:400:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:405:15: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:406:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
babeltrace-1.5.11/converter/babeltrace-log.c:411:15: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:412:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:416:18: call_function: inlined call to ‘bt_dirfd’ from ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:417:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:422:14: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:424:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:429:23: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:431:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:435:23: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:435:23: acquire_memory: allocated here
babeltrace-1.5.11/converter/babeltrace-log.c:436:12: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/converter/babeltrace-log.c:441:9: call_function: inlined call to ‘bt_uuid_generate’ from ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:443:9: call_function: calling ‘trace_text’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
babeltrace-1.5.11/converter/babeltrace-log.c:328:9: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/converter/babeltrace-log.c:386:5: enter_function: entry to ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:394:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:400:13: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:400:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:405:15: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:406:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
babeltrace-1.5.11/converter/babeltrace-log.c:411:15: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:412:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:416:18: call_function: inlined call to ‘bt_dirfd’ from ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:417:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:422:14: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:424:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:429:23: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:431:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:435:23: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:435:23: acquire_memory: allocated here
babeltrace-1.5.11/converter/babeltrace-log.c:436:12: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/converter/babeltrace-log.c:441:9: call_function: inlined call to ‘bt_uuid_generate’ from ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:443:9: call_function: calling ‘trace_text’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
babeltrace-1.5.11/converter/babeltrace.c:460:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ipath_copy’
babeltrace-1.5.11/converter/babeltrace.c:299:12: branch_false: following ‘false’ branch (when ‘argc != 1’)...
babeltrace-1.5.11/converter/babeltrace.c:304:14: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace.c:451:20: branch_true: following ‘true’ branch...
babeltrace-1.5.11/converter/babeltrace.c:452:47: branch_true: ...to here
babeltrace-1.5.11/converter/babeltrace.c:452:47: acquire_memory: allocated here
babeltrace-1.5.11/converter/babeltrace.c:454:28: branch_false: following ‘false’ branch (when ‘ipath_copy’ is non-NULL)...
babeltrace-1.5.11/converter/babeltrace.c:460:25: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace.c:460:25: danger: ‘ipath_copy’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
babeltrace-1.5.11/converter/babeltrace.c:500:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fpath, 0)’
babeltrace-1.5.11/converter/babeltrace.c:491:12: branch_false: following ‘false’ branch (when ‘tflag == 1’)...
babeltrace-1.5.11/converter/babeltrace.c:494:17: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace.c:494:17: acquire_resource: opened here
babeltrace-1.5.11/converter/babeltrace.c:495:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace.c:500:18: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace.c:500:18: danger: ‘open(fpath, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def18]
babeltrace-1.5.11/formats/ctf/callbacks.c:47:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
babeltrace-1.5.11/formats/ctf/callbacks.c:59:25: enter_function: entry to 'bt_dependencies_create'
babeltrace-1.5.11/formats/ctf/callbacks.c:64:9: acquire_resource: 'va_start' called here
babeltrace-1.5.11/formats/ctf/callbacks.c:65:16: call_function: calling '_bt_dependencies_create' from 'bt_dependencies_create'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
babeltrace-1.5.11/formats/ctf/ctf.c:1401:15: warning[-Wanalyzer-malloc-leak]: leak of 'open_memstream(buf, & size)'
babeltrace-1.5.11/formats/ctf/ctf.c:2680:5: enter_function: entry to 'ctf_append_trace_metadata'
babeltrace-1.5.11/formats/ctf/ctf.c:2687:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2689:15: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2689:15: call_function: calling 'ctf_trace_metadata_read' from 'ctf_append_trace_metadata'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
babeltrace-1.5.11/formats/ctf/ctf.c:2348:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
babeltrace-1.5.11/formats/ctf/ctf.c:2443:29: enter_function: entry to 'ctf_open_trace'
babeltrace-1.5.11/formats/ctf/ctf.c:2457:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2460:9: call_function: inlined call to 'init_trace_descriptor' from 'ctf_open_trace'
babeltrace-1.5.11/formats/ctf/ctf.c:2464:20: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/formats/ctf/ctf.c:2468:23: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2468:23: call_function: calling 'ctf_open_trace_read' from 'ctf_open_trace'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
babeltrace-1.5.11/formats/ctf/ctf.c:2351:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
babeltrace-1.5.11/formats/ctf/ctf.c:2443:29: enter_function: entry to 'ctf_open_trace'
babeltrace-1.5.11/formats/ctf/ctf.c:2457:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2460:9: call_function: inlined call to 'init_trace_descriptor' from 'ctf_open_trace'
babeltrace-1.5.11/formats/ctf/ctf.c:2464:20: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/formats/ctf/ctf.c:2468:23: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2468:23: call_function: calling 'ctf_open_trace_read' from 'ctf_open_trace'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
babeltrace-1.5.11/formats/ctf/ctf.c:2356:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
babeltrace-1.5.11/formats/ctf/ctf.c:2342:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2348:21: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2348:21: acquire_resource: opened here
babeltrace-1.5.11/formats/ctf/ctf.c:2349:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2355:17: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2356:9: danger: leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
babeltrace-1.5.11/formats/ctf/ctf.c:2356:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
babeltrace-1.5.11/formats/ctf/ctf.c:2341:19: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/ctf.c:2342:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2348:21: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2349:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2355:17: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2356:9: danger: '<unknown>' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
babeltrace-1.5.11/formats/ctf/ctf.c:2363:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor
babeltrace-1.5.11/formats/ctf/ctf.c:2443:29: enter_function: entry to 'ctf_open_trace'
babeltrace-1.5.11/formats/ctf/ctf.c:2457:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2460:9: call_function: inlined call to 'init_trace_descriptor' from 'ctf_open_trace'
babeltrace-1.5.11/formats/ctf/ctf.c:2464:20: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/formats/ctf/ctf.c:2468:23: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2468:23: call_function: calling 'ctf_open_trace_read' from 'ctf_open_trace'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
babeltrace-1.5.11/formats/ctf/ctf.c:2363:19: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
babeltrace-1.5.11/formats/ctf/ctf.c:2443:29: enter_function: entry to 'ctf_open_trace'
babeltrace-1.5.11/formats/ctf/ctf.c:2457:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2460:9: call_function: inlined call to 'init_trace_descriptor' from 'ctf_open_trace'
babeltrace-1.5.11/formats/ctf/ctf.c:2464:20: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/formats/ctf/ctf.c:2468:23: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2468:23: call_function: calling 'ctf_open_trace_read' from 'ctf_open_trace'
Error: COMPILER_WARNING (CWE-477): [#def26]
babeltrace-1.5.11/formats/ctf/ctf.c: scope_hint: In function 'ctf_open_trace_read'
babeltrace-1.5.11/formats/ctf/ctf.c:2391:17: warning[-Wdeprecated-declarations]: 'readdir_r' is deprecated
/usr/include/glib-2.0/glib/gdir.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:47: included_from: Included from here.
babeltrace-1.5.11/include/babeltrace/context-internal.h:34: included_from: Included from here.
babeltrace-1.5.11/include/babeltrace/format-internal.h:33: included_from: Included from here.
babeltrace-1.5.11/formats/ctf/ctf.c:30: included_from: Included from here.
/usr/include/dirent.h:185:12: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def27]
babeltrace-1.5.11/formats/ctf/ctf.c:2391:17: warning[-Wdeprecated-declarations]: 'readdir_r' is deprecated
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
babeltrace-1.5.11/formats/ctf/ir/event.c:476:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
babeltrace-1.5.11/formats/ctf/ir/event.c:457:5: enter_function: entry to 'bt_ctf_event_set_header'
babeltrace-1.5.11/formats/ctf/ir/event.c:464:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ir/event.c:469:55: call_function: inlined call to 'bt_object_get_parent' from 'bt_ctf_event_set_header'
babeltrace-1.5.11/formats/ctf/ir/event.c:475:22: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ir/event.c:476:13: danger: dereference of NULL '<unknown>'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1063:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'entry'
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1104:5: enter_function: entry to 'bt_ctf_resolve_types'
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1130:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1137:13: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1137:12: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1138:23: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1138:23: call_function: calling 'resolve_root_type' from 'bt_ctf_resolve_types'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1065:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'entry'
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1104:5: enter_function: entry to 'bt_ctf_resolve_types'
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1130:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1137:13: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1137:12: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1138:23: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/ir/resolve.c:1138:23: call_function: calling 'resolve_root_type' from 'bt_ctf_resolve_types'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1958:12: warning[-Wanalyzer-malloc-leak]: leak of 'bt_yyalloc(64, yyscanner)'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1944:21: enter_function: entry to 'bt_yy_create_buffer'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1948:31: call_function: calling 'bt_yyalloc' from 'bt_yy_create_buffer'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1948:31: return_function: returning to 'bt_yy_create_buffer' from 'bt_yyalloc'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1949:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1952:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1958:12: danger: 'bt_yyalloc(64, yyscanner)' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:2000:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1879:10: enter_function: entry to 'yyrestart'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1884:9: call_function: calling 'yyensure_buffer_stack' from 'yyrestart'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1884:9: return_function: returning to 'yyrestart' from 'yyensure_buffer_stack'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1886:13: call_function: calling 'bt_yy_create_buffer' from 'yyrestart'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1886:13: return_function: returning to 'yyrestart' from 'bt_yy_create_buffer'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1889:9: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1889:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:1889:9: call_function: calling 'yy_init_buffer' from 'yyrestart'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:2218:33: warning[-Wanalyzer-malloc-leak]: leak of 'bt_yyalloc(n, yyscanner)'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:2202:17: enter_function: entry to 'bt_yy_scan_bytes'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:2211:24: call_function: calling 'bt_yyalloc' from 'bt_yy_scan_bytes'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:2211:24: return_function: returning to 'bt_yy_scan_bytes' from 'bt_yyalloc'
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:2212:12: branch_false: following 'false' branch...
branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-lexer.c:2220:13: call_function: calling 'bt_yy_scan_buffer' from 'bt_yy_scan_bytes'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:71:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘trace’ where non-null expected
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:49:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:53:15: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:54:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:59:49: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:60:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:65:54: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:70:17: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:70:17: acquire_memory: this call could return NULL
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:71:9: danger: argument 1 (‘trace’) from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:72:15: warning[-Wanalyzer-malloc-leak]: leak of ‘trace’
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:49:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:53:15: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:54:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:59:49: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:60:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:65:54: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:70:17: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:70:17: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser-test.c:72:15: danger: ‘trace’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-127): [#def36]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2640:45: warning[-Wanalyzer-out-of-bounds]: buffer under-read
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2791:1: enter_function: entry to 'yyparse'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2918:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2924:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2930:10: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_true: following 'true' branch (when 'yyn == -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2952:5: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:3012:6: branch_true: following 'true' branch (when 'yyn == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:3013:5: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:5294:13: branch_false: following 'false' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:5297:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:5297:6: branch_true: following 'true' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:5308:33: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:5308:33: call_function: calling 'yysyntax_error' from 'yyparse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2918:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2924:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2930:10: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: danger: 'yyptr' leaks here; was allocated at [(19)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def38]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: danger: use of uninitialized value 'yyss' here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2960:16: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2918:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2924:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2930:10: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2960:16: danger: 'yyptr' leaks here; was allocated at [(19)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:298:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'scope'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2791:1: enter_function: entry to 'yyparse'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1404:27: call_function: calling 'push_scope' from 'yyparse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:299:24: warning[-Wanalyzer-malloc-leak]: leak of 'ns'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2791:1: enter_function: entry to 'yyparse'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1404:27: call_function: calling 'push_scope' from 'yyparse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:299:24: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2791:1: enter_function: entry to 'yyparse'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2918:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2924:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2930:10: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:3012:6: branch_false: following 'false' branch (when 'yyn != 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:3014:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1404:27: call_function: calling 'push_scope' from 'yyparse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:305:9: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2791:1: enter_function: entry to 'yyparse'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2918:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2924:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2930:10: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:3012:6: branch_false: following 'false' branch (when 'yyn != 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:3014:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1409:27: call_function: calling 'pop_scope' from 'yyparse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:367:16: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2791:1: enter_function: entry to 'yyparse'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2918:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2924:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2930:10: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_true: following 'true' branch (when 'yyn <= 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2984:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1190:37: call_function: calling 'make_node' from 'yyparse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:369:17: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2791:1: enter_function: entry to 'yyparse'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2918:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2924:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2930:10: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_true: following 'true' branch (when 'yyn <= 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2984:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1190:37: call_function: calling 'make_node' from 'yyparse'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:939:9: warning[-Wanalyzer-malloc-leak]: leak of 'yyptr'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2791:1: enter_function: entry to 'yyparse'
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2951:6: branch_false: following 'false' branch (when 'yyn != -363')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2957:6: branch_true: following 'true' branch (when 'yychar == -2')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2959:7: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2977:6: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2980:6: branch_false: following 'false' branch (when 'yyn > 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2990:6: branch_false: following 'false' branch (when 'yyerrstatus == 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2994:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2873:6: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2876:31: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2903:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2905:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2912:29: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2913:12: branch_false: following 'false' branch (when 'yyptr' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2915:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2918:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2924:7: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2930:10: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2934:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2936:6: branch_false: following 'false' branch (when 'yystate != 72')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:2939:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:3012:6: branch_false: following 'false' branch (when 'yyn != 0')...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.c:3014:3: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1289:28: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1291:33: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/ctf-parser.y:1291:33: call_function: calling 'yyerror' from 'yyparse'
Error: COMPILER_WARNING (CWE-457): [#def47]
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:2745:37: warning[-Wmaybe-uninitialized]: 'v' may be used uninitialized
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c: scope_hint: In function 'ctf_visitor_construct_metadata'
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:2734:34: note: 'v' was declared here
Error: COMPILER_WARNING (CWE-697): [#def48]
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c: scope_hint: In function 'ctf_destroy_metadata'
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:3118:45: warning[-Waddress]: the comparison will always evaluate as 'true' for the address of 'p' will never be NULL
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:37: included_from: Included from here.
babeltrace-1.5.11/include/babeltrace/types.h:272:30: note: 'p' declared here
Error: COMPILER_WARNING (CWE-697): [#def49]
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:3120:45: warning[-Waddress]: the comparison will always evaluate as 'true' for the address of 'p' will never be NULL
babeltrace-1.5.11/include/babeltrace/types.h:272:30: note: 'p' declared here
Error: COMPILER_WARNING (CWE-697): [#def50]
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:3124:37: warning[-Waddress]: the comparison will always evaluate as 'true' for the address of 'p' will never be NULL
babeltrace-1.5.11/include/babeltrace/types.h:272:30: note: 'p' declared here
Error: COMPILER_WARNING (CWE-697): [#def51]
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:3126:37: warning[-Waddress]: the comparison will always evaluate as 'true' for the address of 'p' will never be NULL
babeltrace-1.5.11/include/babeltrace/types.h:272:30: note: 'p' declared here
Error: COMPILER_WARNING (CWE-697): [#def52]
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:3128:37: warning[-Waddress]: the comparison will always evaluate as 'true' for the address of 'p' will never be NULL
babeltrace-1.5.11/include/babeltrace/types.h:272:30: note: 'p' declared here
Error: COMPILER_WARNING (CWE-697): [#def53]
babeltrace-1.5.11/formats/ctf/metadata/ctf-visitor-generate-io-struct.c:3130:37: warning[-Waddress]: the comparison will always evaluate as 'true' for the address of 'p' will never be NULL
babeltrace-1.5.11/include/babeltrace/types.h:272:30: note: 'p' declared here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:64:9: warning[-Wanalyzer-malloc-leak]: leak of 'node'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:54:12: branch_false: following 'false' branch (when 'objstack' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:56:16: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:56:16: acquire_memory: allocated here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:58:12: branch_false: following 'false' branch (when 'node' is non-NULL)...
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:62:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:64:9: danger: 'node' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:130:20: warning[-Wanalyzer-malloc-leak]: leak of 'last_node'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:118:7: enter_function: entry to 'objstack_alloc'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:128:16: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: call_function: calling 'objstack_append_node' from 'objstack_alloc'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: return_function: returning to 'objstack_alloc' from 'objstack_append_node'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:130:20: branch_false: following 'false' branch...
branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:128:16: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: call_function: calling 'objstack_append_node' from 'objstack_alloc'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: return_function: returning to 'objstack_alloc' from 'objstack_append_node'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:130:20: branch_false: following 'false' branch...
branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:128:16: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: call_function: calling 'objstack_append_node' from 'objstack_alloc'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: return_function: returning to 'objstack_alloc' from 'objstack_append_node'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:130:20: branch_true: following 'true' branch...
branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:130:20: danger: 'last_node' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:135:9: warning[-Wanalyzer-malloc-leak]: leak of 'last_node'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:118:7: enter_function: entry to 'objstack_alloc'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:128:16: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: call_function: calling 'objstack_append_node' from 'objstack_alloc'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: return_function: returning to 'objstack_alloc' from 'objstack_append_node'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:130:20: branch_false: following 'false' branch...
branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:128:16: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: branch_true: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: call_function: calling 'objstack_append_node' from 'objstack_alloc'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:129:29: return_function: returning to 'objstack_alloc' from 'objstack_append_node'
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:130:20: branch_false: following 'false' branch...
branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:128:16: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:134:9: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/metadata/objstack.c:135:9: danger: 'last_node' leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
babeltrace-1.5.11/formats/ctf/writer/writer.c:108:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'obj'
babeltrace-1.5.11/formats/ctf/writer/writer.c:102:6: enter_function: entry to 'bt_ctf_writer_destroy'
babeltrace-1.5.11/formats/ctf/writer/writer.c:107:9: call_function: calling 'bt_ctf_writer_flush_metadata' from 'bt_ctf_writer_destroy'
babeltrace-1.5.11/formats/ctf/writer/writer.c:107:9: return_function: returning to 'bt_ctf_writer_destroy' from 'bt_ctf_writer_flush_metadata'
babeltrace-1.5.11/formats/ctf/writer/writer.c:108:13: danger: dereference of NULL 'obj'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:87:23: warning[-Wanalyzer-malloc-leak]: leak of 'data'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1212:6: enter_function: entry to 'ctf_live_packet_seek'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1230:12: branch_false: following 'false' branch...
branch_false: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1264:12: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1265:17: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1265:17: call_function: calling 'lttng_index_to_packet_index' from 'ctf_live_packet_seek'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1265:17: return_function: returning to 'ctf_live_packet_seek' from 'lttng_index_to_packet_index'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1295:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1312:28: branch_false: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1315:12: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1321:12: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1321:12: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1323:21: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1323:20: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1325:33: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1381:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1386:13: branch_false: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1386:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1392:15: call_function: calling 'get_data_packet' from 'ctf_live_packet_seek'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def59]
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1342:25: warning[-Wanalyzer-null-argument]: use of NULL 'prev_index' where non-null expected
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1212:6: enter_function: entry to 'ctf_live_packet_seek'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1230:12: branch_false: following 'false' branch...
branch_false: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1264:12: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1265:17: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1265:17: call_function: calling 'lttng_index_to_packet_index' from 'ctf_live_packet_seek'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1265:17: return_function: returning to 'ctf_live_packet_seek' from 'lttng_index_to_packet_index'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1295:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1312:28: branch_false: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1315:12: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1321:12: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1321:12: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1323:21: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1323:20: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1325:33: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1342:25: danger: argument 2 ('prev_index') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1528:43: warning[-Wanalyzer-malloc-leak]: leak of 'new_mmap_stream'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1512:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1522:9: branch_false: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1526:9: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1527:22: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1527:20: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1528:43: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1528:43: acquire_memory: allocated here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1526:9: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1527:22: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1527:20: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1528:43: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1528:43: danger: 'new_mmap_stream' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1529:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_mmap_stream'
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1512:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1522:9: branch_false: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1526:9: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1527:22: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1527:20: branch_true: following 'true' branch...
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1528:43: branch_true: ...to here
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1528:43: acquire_memory: this call could return NULL
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:1529:25: danger: 'new_mmap_stream' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
babeltrace-1.5.11/include/babeltrace/compat/stdio.h:89:23: warning[-Wanalyzer-malloc-leak]: leak of ‘babeltrace_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:166:6: enter_function: entry to ‘validate_trace’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:216:40: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:228:24: call_function: calling ‘bt_getline’ from ‘validate_trace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
babeltrace-1.5.11/include/babeltrace/compat/stdio.h:89:23: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:166:6: enter_function: entry to ‘validate_trace’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:228:24: call_function: calling ‘bt_getline’ from ‘validate_trace’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
babeltrace-1.5.11/include/babeltrace/compat/stdio.h:89:23: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:50:6: enter_function: entry to ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:109:31: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: call_function: calling ‘bt_getline’ from ‘validate_metadata’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
babeltrace-1.5.11/include/babeltrace/compat/stdio.h:89:23: warning[-Wanalyzer-malloc-leak]: leak of ‘parser_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:50:6: enter_function: entry to ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: call_function: calling ‘bt_getline’ from ‘validate_metadata’
Error: COMPILER_WARNING (CWE-126): [#def66]
babeltrace-1.5.11/include/babeltrace/compat/string.h:58:16: warning[-Wstringop-overread]: 'strndup' specified bound 255 exceeds source size 64
babeltrace-1.5.11/formats/lttng-live/lttng-live.h:30: included_from: Included from here.
babeltrace-1.5.11/formats/lttng-live/lttng-live-comm.c:57: included_from: Included from here.
babeltrace-1.5.11/formats/lttng-live/lttng-viewer-abi.h: scope_hint: In function 'lttng_live_list_sessions'
babeltrace-1.5.11/formats/lttng-live/lttng-viewer-abi.h:113:14: note: source object allocated here
Error: COMPILER_WARNING (CWE-126): [#def67]
babeltrace-1.5.11/include/babeltrace/compat/string.h:58:16: warning[-Wstringop-overread]: 'strndup' specified bound 255 exceeds source size 64
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
babeltrace-1.5.11/include/babeltrace/compat/uuid.h:38:9: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/converter/babeltrace-log.c:386:5: enter_function: entry to ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:394:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:400:13: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:400:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:405:15: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:406:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
babeltrace-1.5.11/converter/babeltrace-log.c:411:15: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:412:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:416:18: call_function: inlined call to ‘bt_dirfd’ from ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:417:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:422:14: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:424:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:429:23: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:431:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:435:23: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:435:23: acquire_memory: allocated here
babeltrace-1.5.11/converter/babeltrace-log.c:436:12: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/converter/babeltrace-log.c:441:9: call_function: inlined call to ‘bt_uuid_generate’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
babeltrace-1.5.11/include/babeltrace/compat/uuid.h:68:9: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/converter/babeltrace-log.c:386:5: enter_function: entry to ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:394:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:400:13: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:400:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:405:15: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:406:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
babeltrace-1.5.11/converter/babeltrace-log.c:411:15: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:412:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:416:18: call_function: inlined call to ‘bt_dirfd’ from ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:417:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:422:14: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:424:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:429:23: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:431:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/converter/babeltrace-log.c:435:23: branch_false: ...to here
babeltrace-1.5.11/converter/babeltrace-log.c:435:23: acquire_memory: allocated here
babeltrace-1.5.11/converter/babeltrace-log.c:436:12: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/converter/babeltrace-log.c:441:9: call_function: inlined call to ‘bt_uuid_generate’ from ‘main’
babeltrace-1.5.11/converter/babeltrace-log.c:442:9: call_function: calling ‘print_metadata’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
babeltrace-1.5.11/include/babeltrace/compat/uuid.h:82:16: warning[-Wanalyzer-malloc-leak]: leak of 'open_memstream(buf, & size)'
babeltrace-1.5.11/formats/ctf/ctf.c:2680:5: enter_function: entry to 'ctf_append_trace_metadata'
babeltrace-1.5.11/formats/ctf/ctf.c:2687:12: branch_false: following 'false' branch...
babeltrace-1.5.11/formats/ctf/ctf.c:2689:15: branch_false: ...to here
babeltrace-1.5.11/formats/ctf/ctf.c:2689:15: call_function: calling 'ctf_trace_metadata_read' from 'ctf_append_trace_metadata'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
babeltrace-1.5.11/lib/bin-info.c:205:14: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
babeltrace-1.5.11/lib/bin-info.c:205:14: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
babeltrace-1.5.11/lib/bin-info.c:211:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path, 0)'
babeltrace-1.5.11/lib/bin-info.c:201:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:205:14: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:205:14: acquire_resource: opened here
babeltrace-1.5.11/lib/bin-info.c:206:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:211:22: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:211:22: danger: 'open(path, 0)' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
babeltrace-1.5.11/lib/bin-info.c:211:22: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
babeltrace-1.5.11/lib/bin-info.c:211:22: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
babeltrace-1.5.11/lib/bin-info.c:220:14: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
babeltrace-1.5.11/lib/bin-info.c:220:14: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
babeltrace-1.5.11/lib/bin-info.c:225:15: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
babeltrace-1.5.11/lib/bin-info.c:225:15: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
babeltrace-1.5.11/lib/bin-info.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
babeltrace-1.5.11/lib/bin-info.c:242:17: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
babeltrace-1.5.11/lib/bin-info.c:245:9: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
babeltrace-1.5.11/lib/bin-info.c:245:9: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:402:13: return_function: returning to 'bin_info_set_dwarf_info_debug_link' from 'is_valid_debug_file'
babeltrace-1.5.11/lib/bin-info.c:433:15: call_function: calling 'bin_info_set_dwarf_info_from_path' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
babeltrace-1.5.11/lib/bin-info.c:335:14: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
babeltrace-1.5.11/lib/bin-info.c:335:14: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
babeltrace-1.5.11/lib/bin-info.c:340:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path, 0)'
babeltrace-1.5.11/lib/bin-info.c:331:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:335:14: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:335:14: acquire_resource: opened here
babeltrace-1.5.11/lib/bin-info.c:336:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:340:15: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:340:15: danger: 'open(path, 0)' leaks here; was opened at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
babeltrace-1.5.11/lib/bin-info.c:340:15: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
babeltrace-1.5.11/lib/bin-info.c:340:15: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
babeltrace-1.5.11/lib/bin-info.c:349:9: warning[-Wanalyzer-malloc-leak]: leak of 'bin_dir'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:382:19: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
babeltrace-1.5.11/lib/bin-info.c:349:9: warning[-Wanalyzer-malloc-leak]: leak of 'path'
babeltrace-1.5.11/lib/bin-info.c:363:5: enter_function: entry to 'bin_info_set_dwarf_info_debug_link'
babeltrace-1.5.11/lib/bin-info.c:370:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:377:12: branch_false: following 'false' branch (when 'dir_name' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:382:26: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:383:12: branch_false: following 'false' branch (when 'bin_dir' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:387:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:393:16: acquire_memory: allocated here
babeltrace-1.5.11/lib/bin-info.c:394:12: branch_false: following 'false' branch (when 'path' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:399:9: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:402:13: call_function: calling 'is_valid_debug_file' from 'bin_info_set_dwarf_info_debug_link'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
babeltrace-1.5.11/lib/bin-info.c:504:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(*bin.elf_path, 0)'
babeltrace-1.5.11/lib/bin-info.c:493:12: branch_false: following 'false' branch (when 'bin' is non-NULL)...
babeltrace-1.5.11/lib/bin-info.c:497:23: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:497:18: acquire_resource: opened here
babeltrace-1.5.11/lib/bin-info.c:498:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/bin-info.c:504:20: branch_false: ...to here
babeltrace-1.5.11/lib/bin-info.c:504:20: danger: 'open(*bin.elf_path, 0)' leaks here; was opened at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
babeltrace-1.5.11/lib/debug-info.c:115:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'bin'
babeltrace-1.5.11/lib/debug-info.c:245:27: enter_function: entry to 'proc_debug_info_sources_get_entry'
babeltrace-1.5.11/lib/debug-info.c:253:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/debug-info.c:257:9: branch_false: ...to here
babeltrace-1.5.11/lib/debug-info.c:263:12: branch_false: following 'false' branch...
babeltrace-1.5.11/lib/debug-info.c:268:9: branch_false: ...to here
babeltrace-1.5.11/lib/debug-info.c:270:16: branch_true: following 'true' branch...
babeltrace-1.5.11/lib/debug-info.c:272:34: branch_true: ...to here
babeltrace-1.5.11/lib/debug-info.c:285:34: call_function: calling 'debug_info_source_create_from_bin' from 'proc_debug_info_sources_get_entry'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
babeltrace-1.5.11/lib/iterator.c:140:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cfs'
babeltrace-1.5.11/lib/iterator.c:789:17: enter_function: entry to 'bt_iter_create'
babeltrace-1.5.11/lib/iterator.c:796:12: branch_false: following 'false' branch (when 'ctx' is non-NULL)...
babeltrace-1.5.11/lib/iterator.c:799:16: branch_false: ...to here
babeltrace-1.5.11/lib/iterator.c:800:15: call_function: calling 'bt_iter_init' from 'bt_iter_create'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:67:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(metadata_path, 0)’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:67:17: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:67:17: danger: ‘open(metadata_path, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:75:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(metadata_path, 0)’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:74:21: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:75:17: danger: ‘open(metadata_path, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:81:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(metadata_path, 0)’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:80:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:81:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:81:25: danger: ‘open(metadata_path, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:87:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(metadata_path, 0)’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:80:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:85:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:86:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:87:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:87:25: danger: ‘open(metadata_path, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:87:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:80:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:85:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:86:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:87:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:87:25: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:92:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(metadata_path, 0)’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:80:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:85:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:86:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:91:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:92:20: danger: ‘open(metadata_path, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:93:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(metadata_path, 0)’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:80:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:85:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:86:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:91:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:92:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:93:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:93:25: danger: ‘open(metadata_path, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:93:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:80:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:85:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:86:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:91:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:92:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:93:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:93:25: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:98:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:79:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:80:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:85:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:86:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:91:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:91:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:92:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:97:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:98:17: danger: ‘ret’ leaks here; was opened at [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def103]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:102:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘metadata_fd’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:67:17: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:102:9: danger: ‘metadata_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:102:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(metadata_path, 0)’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:73:12: branch_true: following ‘true’ branch (when ‘pid != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:74:21: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:76:23: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:76:43: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:102:9: branch_true: following ‘true’ branch (when ‘ret == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:102:9: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:102:9: danger: ‘open(metadata_path, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:118:25: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:109:31: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_true: following ‘true’ branch (when ‘parser_output_fp’ is NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:118:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:118:25: danger: ‘metadata_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:125:25: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:109:31: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:125:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:125:25: danger: ‘metadata_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:125:25: warning[-Wanalyzer-malloc-leak]: leak of ‘parser_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:125:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:125:25: danger: ‘parser_output_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: danger: ‘line’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:109:31: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: danger: ‘metadata_fp’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: warning[-Wanalyzer-malloc-leak]: leak of ‘parser_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: danger: ‘parser_output_fp’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:50:6: enter_function: entry to ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: call_function: calling ‘bt_getline’ from ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: return_function: returning to ‘validate_metadata’ from ‘bt_getline’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: danger: ‘line’ leaks here; was allocated at [(10)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:50:6: enter_function: entry to ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:109:31: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: call_function: calling ‘bt_getline’ from ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: return_function: returning to ‘validate_metadata’ from ‘bt_getline’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: danger: ‘metadata_fp’ leaks here; was allocated at [(6)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: warning[-Wanalyzer-malloc-leak]: leak of ‘parser_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:50:6: enter_function: entry to ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: call_function: calling ‘bt_getline’ from ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: return_function: returning to ‘validate_metadata’ from ‘bt_getline’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:132:25: danger: ‘parser_output_fp’ leaks here; was allocated at [(8)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:50:6: enter_function: entry to ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: call_function: calling ‘bt_getline’ from ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: return_function: returning to ‘validate_metadata’ from ‘bt_getline’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: danger: ‘line’ leaks here; was allocated at [(10)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: warning[-Wanalyzer-malloc-leak]: leak of ‘metadata_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:50:6: enter_function: entry to ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:109:31: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: call_function: calling ‘bt_getline’ from ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: return_function: returning to ‘validate_metadata’ from ‘bt_getline’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: danger: ‘metadata_fp’ leaks here; was allocated at [(6)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: warning[-Wanalyzer-malloc-leak]: leak of ‘parser_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:50:6: enter_function: entry to ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:110:20: branch_false: following ‘false’ branch (when ‘metadata_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:116:36: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:117:20: branch_false: following ‘false’ branch (when ‘parser_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:123:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:124:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:128:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: call_function: calling ‘bt_getline’ from ‘validate_metadata’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: return_function: returning to ‘validate_metadata’ from ‘bt_getline’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:131:24: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:135:17: danger: ‘parser_output_fp’ leaks here; was allocated at [(8)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:155:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘metadata_fd’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:154:12: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:154:12: branch_true: following ‘true’ branch (when ‘parser_output_fd >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:155:21: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:155:21: danger: ‘metadata_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:156:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘metadata_fd’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:66:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:72:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:154:12: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:154:12: branch_true: following ‘true’ branch (when ‘parser_output_fd >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:155:21: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:155:20: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:156:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:156:25: danger: ‘metadata_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def119]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:160:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘metadata_fd’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:13: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:104:13: branch_false: following ‘false’ branch (when ‘parser_output_fd < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:159:12: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:159:12: branch_true: following ‘true’ branch (when ‘metadata_fd >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:160:21: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:160:21: danger: ‘metadata_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:164:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘metadata_fd’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:56:12: branch_false: following ‘false’ branch (when ‘metadata_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:61:28: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:62:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:159:12: branch_false: following ‘false’ branch (when ‘metadata_fd < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:164:1: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:164:1: danger: ‘metadata_fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:205:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:204:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:205:17: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:218:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_true: following ‘true’ branch (when ‘babeltrace_output_fp’ is NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:218:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:218:25: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:225:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:225:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:225:25: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:225:25: warning[-Wanalyzer-malloc-leak]: leak of ‘babeltrace_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:216:40: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:225:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:225:25: danger: ‘babeltrace_output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: warning[-Wanalyzer-malloc-leak]: leak of ‘babeltrace_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:216:40: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: danger: ‘babeltrace_output_fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: danger: ‘line’ leaks here; was allocated at [(5)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:229:25: warning[-Wanalyzer-malloc-leak]: leak of ‘babeltrace_output_fp’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:166:6: enter_function: entry to ‘validate_trace’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:216:40: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:228:24: call_function: calling ‘bt_getline’ from ‘validate_trace’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:228:24: return_function: returning to ‘validate_trace’ from ‘bt_getline’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:228:24: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:229:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:229:25: danger: ‘babeltrace_output_fp’ leaks here; was allocated at [(4)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:229:25: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:166:6: enter_function: entry to ‘validate_trace’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:211:12: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:213:24: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:223:24: acquire_memory: allocated here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:224:20: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:227:17: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:228:24: call_function: calling ‘bt_getline’ from ‘validate_trace’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:228:24: return_function: returning to ‘validate_trace’ from ‘bt_getline’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:228:24: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:229:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:229:25: danger: ‘line’ leaks here; was allocated at [(6)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def132]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:242:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_true: following ‘true’ branch (when ‘babeltrace_output_fp’ is NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:218:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:234:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is NULL)...
branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:241:12: branch_true: following ‘true’ branch (when ‘babeltrace_output_fd >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:242:21: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:242:21: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:243:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:217:20: branch_true: following ‘true’ branch (when ‘babeltrace_output_fp’ is NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:218:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:234:20: branch_false: following ‘false’ branch (when ‘babeltrace_output_fp’ is NULL)...
branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:241:12: branch_true: following ‘true’ branch (when ‘babeltrace_output_fd >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:242:21: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:242:20: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:243:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:243:25: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:246:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:172:12: branch_false: following ‘false’ branch (when ‘trace_path’ is non-NULL)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:177:32: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:180:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:186:21: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:187:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:192:23: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:193:20: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:198:23: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:199:20: branch_true: following ‘true’ branch (when ‘ret < 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:200:25: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: following ‘false’ branch (when ‘ret != 0’)...
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:209:9: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_ctf_writer.c:246:1: danger: ‘ret’ leaks here; was opened at [(7)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
babeltrace-1.5.11/tests/lib/test_dwarf.c:46:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 0)’
babeltrace-1.5.11/tests/lib/test_dwarf.c:45:14: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_dwarf.c:46:9: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_dwarf.c:46:9: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_dwarf.c:46:9: danger: ‘open(&path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
babeltrace-1.5.11/tests/lib/test_dwarf.c:50:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 0)’
babeltrace-1.5.11/tests/lib/test_dwarf.c:45:14: acquire_resource: opened here
babeltrace-1.5.11/tests/lib/test_dwarf.c:46:9: branch_true: following ‘true’ branch...
babeltrace-1.5.11/tests/lib/test_dwarf.c:46:9: branch_true: ...to here
babeltrace-1.5.11/tests/lib/test_dwarf.c:47:12: branch_false: following ‘false’ branch...
babeltrace-1.5.11/tests/lib/test_dwarf.c:50:22: branch_false: ...to here
babeltrace-1.5.11/tests/lib/test_dwarf.c:50:22: danger: ‘open(&path, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-465): [#def137]
babeltrace-1.5.11/types/types.c:215:16: warning[-Wanalyzer-deref-before-check]: check of 'scope' for NULL after already dereferencing it
babeltrace-1.5.11/types/types.c:187:9: enter_function: entry to 'bt_lookup_path_definition'
babeltrace-1.5.11/types/types.c:196:9: call_function: calling 'is_path_child_of' from 'bt_lookup_path_definition'
babeltrace-1.5.11/types/types.c:196:9: return_function: returning to 'bt_lookup_path_definition' from 'is_path_child_of'
babeltrace-1.5.11/types/types.c:196:9: branch_true: following 'true' branch...
babeltrace-1.5.11/types/types.c:197:9: branch_true: ...to here
babeltrace-1.5.11/types/types.c:197:9: branch_true: following 'true' branch...
babeltrace-1.5.11/types/types.c:203:13: branch_true: ...to here
babeltrace-1.5.11/types/types.c:203:12: branch_false: following 'false' branch...
branch_false: ...to here
babeltrace-1.5.11/types/types.c:215:16: danger: pointer 'scope' is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
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-121.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 | babeltrace-1.5.11-15.fc44 |
| store-results-to | /tmp/tmpq3vobpfz/babeltrace-1.5.11-15.fc44.tar.xz |
| time-created | 2025-10-28 17:24:00 |
| time-finished | 2025-10-28 17:26:33 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpq3vobpfz/babeltrace-1.5.11-15.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpq3vobpfz/babeltrace-1.5.11-15.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |