Newly introduced findings
List of Findings
Error: CPPCHECK_WARNING (CWE-401): [#def1]
lsof-4.99.6-rh/lib/dialects/linux/dmnt.c:144: error[memleakOnRealloc]: Common realloc mistake: 'cvt_str' nulled but not freed upon failure
Error: COMPILER_WARNING (CWE-563): [#def2]
lsof-4.99.6-rh/lib/dialects/linux/dnode.c: scope_hint: In function 'process_proc_node'
lsof-4.99.6-rh/lib/dialects/linux/dnode.c:716:11: warning[-Wunused-variable]: unused variable 'tn'
Error: COMPILER_WARNING (CWE-563): [#def3]
lsof-4.99.6-rh/lib/dialects/linux/dnode.c: scope_hint: In function ‘process_proc_node’
lsof-4.99.6-rh/lib/dialects/linux/dnode.c:716:11: warning[-Wunused-variable]: unused variable ‘tn’
Error: CPPCHECK_WARNING (CWE-401): [#def4]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:316: error[memleakOnRealloc]: Common realloc mistake: 'pidpath' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def5]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:387: error[memleakOnRealloc]: Common realloc mistake: 'tidpath' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:855:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(p, m)'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:210:6: enter_function: entry to 'gather_proc_info'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:308:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:19: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:328:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:330:9: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: call_function: calling 'read_id_stat' from 'gather_proc_info'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: return_function: returning to 'gather_proc_info' from 'read_id_stat'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:337:13: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:427:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:427:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:308:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:19: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:314:14: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:314:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:323:15: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:328:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:330:9: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:335:15: call_function: calling 'make_proc_path' from 'gather_proc_info'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:335:15: return_function: returning to 'gather_proc_info' from 'make_proc_path'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: call_function: calling 'read_id_stat' from 'gather_proc_info'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:855:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(p, m)’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:210:6: enter_function: entry to ‘gather_proc_info’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:308:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:19: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:328:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:330:9: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: call_function: calling ‘read_id_stat’ from ‘gather_proc_info’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: return_function: returning to ‘gather_proc_info’ from ‘read_id_stat’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:337:13: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:427:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:427:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:308:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:19: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:314:14: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:314:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:323:15: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:328:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:330:9: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:335:15: call_function: calling ‘make_proc_path’ from ‘gather_proc_info’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:335:15: return_function: returning to ‘gather_proc_info’ from ‘make_proc_path’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: call_function: calling ‘read_id_stat’ from ‘gather_proc_info’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:855:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(p, m)'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:210:6: enter_function: entry to 'gather_proc_info'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:308:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:19: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:328:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:330:9: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: call_function: calling 'read_id_stat' from 'gather_proc_info'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: return_function: returning to 'gather_proc_info' from 'read_id_stat'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:337:13: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:427:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:427:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:308:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:19: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:314:14: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:314:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:323:15: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:328:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:330:9: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:335:15: call_function: calling 'make_proc_path' from 'gather_proc_info'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:335:15: return_function: returning to 'gather_proc_info' from 'make_proc_path'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: call_function: calling 'read_id_stat' from 'gather_proc_info'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:855:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(p, m)’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:210:6: enter_function: entry to ‘gather_proc_info’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:308:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:19: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:328:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:330:9: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: call_function: calling ‘read_id_stat’ from ‘gather_proc_info’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: return_function: returning to ‘gather_proc_info’ from ‘read_id_stat’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:337:13: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:427:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:427:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:308:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:19: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:309:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:314:14: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:314:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:323:15: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:328:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:330:9: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:335:15: call_function: calling ‘make_proc_path’ from ‘gather_proc_info’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:335:15: return_function: returning to ‘gather_proc_info’ from ‘make_proc_path’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:336:20: call_function: calling ‘read_id_stat’ from ‘gather_proc_info’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(p, m)'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:839:16: acquire_resource: opened here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:839:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:849:8: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:849:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:854:10: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:8: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:863:30: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: danger: 'fopen(p, m)' leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: warning[-Wanalyzer-file-leak]: leak of FILE 'open_proc_stream(ctx, p, "r", & vbuf, & vsz, 0)'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1429:1: enter_function: entry to 'process_proc_map'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:16: call_function: calling 'open_proc_stream' from 'process_proc_map'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:16: return_function: returning to 'process_proc_map' from 'open_proc_stream'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:23: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:8: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1465:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1466:13: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1487:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1498:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1500:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1506:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1513:21: branch_false: following 'false' branch (when 'i >= ns')...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1517:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1517:12: branch_false: following 'false' branch (when 'i >= ns')...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1522:13: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1522:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1523:17: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1525:16: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1528:42: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: danger: 'open_proc_stream(ctx, p, "r", & vbuf, & vsz, 0)' leaks here; was opened at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘open_proc_stream(ctx, p, "r", & vbuf, & vsz, 0)’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1429:1: enter_function: entry to ‘process_proc_map’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:16: call_function: calling ‘open_proc_stream’ from ‘process_proc_map’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:16: return_function: returning to ‘process_proc_map’ from ‘open_proc_stream’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:23: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:8: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1465:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1466:13: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1487:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1498:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1500:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1506:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1513:21: branch_false: following ‘false’ branch (when ‘i >= ns’)...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1517:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1517:12: branch_false: following ‘false’ branch (when ‘i >= ns’)...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1522:13: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1522:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1523:17: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1525:16: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1528:42: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: danger: ‘open_proc_stream(ctx, p, "r", & vbuf, & vsz, 0)’ leaks here; was opened at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(p, m)'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:839:16: acquire_memory: allocated here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:839:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:849:8: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:849:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:854:10: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:8: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:863:30: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: danger: 'fopen(p, m)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: warning[-Wanalyzer-malloc-leak]: leak of 'open_proc_stream(ctx, p, "r", & vbuf, & vsz, 0)'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1429:1: enter_function: entry to 'process_proc_map'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:16: call_function: calling 'open_proc_stream' from 'process_proc_map'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:16: return_function: returning to 'process_proc_map' from 'open_proc_stream'
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:23: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:8: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1465:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1466:13: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1487:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1498:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1500:12: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1506:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1513:21: branch_false: following 'false' branch (when 'i >= ns')...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1517:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1517:12: branch_false: following 'false' branch (when 'i >= ns')...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1522:13: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1522:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1523:17: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1525:16: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1528:42: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: danger: 'open_proc_stream(ctx, p, "r", & vbuf, & vsz, 0)' leaks here; was allocated at [(4)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: warning[-Wanalyzer-malloc-leak]: leak of ‘open_proc_stream(ctx, p, "r", & vbuf, & vsz, 0)’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1429:1: enter_function: entry to ‘process_proc_map’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:16: call_function: calling ‘open_proc_stream’ from ‘process_proc_map’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:16: return_function: returning to ‘process_proc_map’ from ‘open_proc_stream’
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1458:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:23: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1462:8: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1465:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1466:13: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1487:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1498:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1500:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1506:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1513:21: branch_false: following ‘false’ branch (when ‘i >= ns’)...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1517:12: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1517:12: branch_false: following ‘false’ branch (when ‘i >= ns’)...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1522:13: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1522:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1523:17: branch_true: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1525:16: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:1528:42: branch_false: ...to here
lsof-4.99.6-rh/lib/dialects/linux/dproc.c:862:10: danger: ‘open_proc_stream(ctx, p, "r", & vbuf, & vsz, 0)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/3)
Error: COMPILER_WARNING (CWE-1164): [#def16]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c: scope_hint: At top level
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:372:14: warning[-Wunused-function]: 'socket_state_to_str' declared 'static' but never defined
Error: COMPILER_WARNING (CWE-1164): [#def17]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c: scope_hint: At top level
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:372:14: warning[-Wunused-function]: ‘socket_state_to_str’ declared ‘static’ but never defined
Error: COMPILER_WARNING (CWE-563): [#def18]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c: scope_hint: In function 'prt_uxs'
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:1076:9: warning[-Wunused-variable]: unused variable 'i'
Error: COMPILER_WARNING (CWE-563): [#def19]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c: scope_hint: In function ‘prt_uxs’
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:1076:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-563): [#def20]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c: scope_hint: In function 'prt_nets_common'
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:1244:9: warning[-Wunused-variable]: unused variable 'i'
Error: COMPILER_WARNING (CWE-563): [#def21]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c: scope_hint: In function ‘prt_nets_common’
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:1244:9: warning[-Wunused-variable]: unused variable ‘i’
Error: CPPCHECK_WARNING (CWE-401): [#def22]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:2386: error[memleakOnRealloc]: Common realloc mistake: 'la' nulled but not freed upon failure
Error: CPPCHECK_WARNING (CWE-401): [#def23]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:2417: error[memleakOnRealloc]: Common realloc mistake: 'ra' nulled but not freed upon failure
Error: COMPILER_WARNING: [#def24]
lsof-4.99.6-rh/lib/dialects/linux/dsock.c: scope_hint: In function 'get_sctpaddrs'
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:2486:15: warning[-Wstringop-truncation]: 'strncpy' specified bound depends on the length of the source argument
lsof-4.99.6-rh/lib/dialects/linux/dsock.c:2470:54: note: length computed here
Error: COMPILER_WARNING (CWE-563): [#def25]
lsof-4.99.6-rh/lib/lsof.c:254:10: warning[-Wunused-variable]: unused variable 'buf'
Error: COMPILER_WARNING (CWE-563): [#def26]
lsof-4.99.6-rh/lib/lsof.c:254:10: warning[-Wunused-variable]: unused variable ‘buf’
Error: COMPILER_WARNING (CWE-563): [#def27]
lsof-4.99.6-rh/lib/lsof.c: scope_hint: In function 'lsof_gather'
lsof-4.99.6-rh/lib/lsof.c:255:9: warning[-Wunused-variable]: unused variable 's'
Error: COMPILER_WARNING (CWE-563): [#def28]
lsof-4.99.6-rh/lib/lsof.c: scope_hint: In function ‘lsof_gather’
lsof-4.99.6-rh/lib/lsof.c:255:9: warning[-Wunused-variable]: unused variable ‘s’
Error: CPPCHECK_WARNING (CWE-476): [#def29]
lsof-4.99.6-rh/lib/lsof.c:305: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: user_procs
Error: GCC_ANALYZER_WARNING (CWE-688): [#def30]
lsof-4.99.6-rh/lib/lsof.c:305:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'user_procs' where non-null expected
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following 'false' branch (when 'result' is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:285:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/lsof.c:293:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:304:32: acquire_memory: this call could return NULL
lsof-4.99.6-rh/lib/lsof.c:305:5: danger: argument 1 ('user_procs') from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
lsof-4.99.6-rh/lib/lsof.c:305:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘user_procs’ where non-null expected
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:285:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:293:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:304:32: acquire_memory: this call could return NULL
lsof-4.99.6-rh/lib/lsof.c:305:5: danger: argument 1 (‘user_procs’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
lsof-4.99.6-rh/lib/lsof.c:346:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'malloc(num_files * 88)' where non-null expected
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following 'false' branch (when 'result' is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:285:8: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/lsof.c:286:9: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following 'true' branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:338:33: branch_false: following 'false' branch (when 'lf' is NULL)...
lsof-4.99.6-rh/lib/lsof.c:344:44: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:344:44: acquire_memory: this call could return NULL
lsof-4.99.6-rh/lib/lsof.c:346:13: danger: argument 1 ('malloc(num_files * 88)') from [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
lsof-4.99.6-rh/lib/lsof.c:346:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(num_files * 88)’ where non-null expected
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:285:8: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:286:9: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:338:33: branch_false: following ‘false’ branch (when ‘lf’ is NULL)...
lsof-4.99.6-rh/lib/lsof.c:344:44: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:344:44: acquire_memory: this call could return NULL
lsof-4.99.6-rh/lib/lsof.c:346:13: danger: argument 1 (‘malloc(num_files * 88)’) from [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-122): [#def34]
lsof-4.99.6-rh/lib/lsof.c:352:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:352:21: danger: out-of-bounds write from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def35]
lsof-4.99.6-rh/lib/lsof.c:355:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:355:21: danger: out-of-bounds write from byte 8 till byte 11 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def36]
lsof-4.99.6-rh/lib/lsof.c:356:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:356:21: danger: out-of-bounds write from byte 12 till byte 15 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def37]
lsof-4.99.6-rh/lib/lsof.c:357:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:357:21: danger: out-of-bounds write from byte 16 till byte 19 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def38]
lsof-4.99.6-rh/lib/lsof.c:358:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:358:21: danger: out-of-bounds write from byte 20 till byte 23 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def39]
lsof-4.99.6-rh/lib/lsof.c:361:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:361:21: danger: out-of-bounds write from byte 24 till byte 27 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def40]
lsof-4.99.6-rh/lib/lsof.c:362:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:362:21: danger: out-of-bounds write from byte 28 till byte 31 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def41]
lsof-4.99.6-rh/lib/lsof.c:365:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:365:21: danger: out-of-bounds write from byte 32 till byte 39 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def42]
lsof-4.99.6-rh/lib/lsof.c:367:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:366:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:367:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:367:25: danger: out-of-bounds write from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def43]
lsof-4.99.6-rh/lib/lsof.c:369:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:366:24: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:369:31: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:369:21: danger: out-of-bounds write from byte 40 till byte 47 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-126): [#def44]
lsof-4.99.6-rh/lib/lsof.c:371:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:366:24: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:369:31: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:370:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:371:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:371:25: danger: out-of-bounds read from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def45]
lsof-4.99.6-rh/lib/lsof.c:371:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:366:24: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:369:31: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:370:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:371:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:371:25: danger: out-of-bounds write from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def46]
lsof-4.99.6-rh/lib/lsof.c:375:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:375:21: danger: out-of-bounds write from byte 48 till byte 55 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-126): [#def47]
lsof-4.99.6-rh/lib/lsof.c:377:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:376:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:377:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:377:25: danger: out-of-bounds read from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def48]
lsof-4.99.6-rh/lib/lsof.c:377:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:376:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:377:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:377:25: danger: out-of-bounds write from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def49]
lsof-4.99.6-rh/lib/lsof.c:379:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:379:21: danger: out-of-bounds write from byte 56 till byte 63 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-126): [#def50]
lsof-4.99.6-rh/lib/lsof.c:381:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:380:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:381:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:381:25: danger: out-of-bounds read from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def51]
lsof-4.99.6-rh/lib/lsof.c:381:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:380:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:381:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:381:25: danger: out-of-bounds write from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def52]
lsof-4.99.6-rh/lib/lsof.c:385:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:385:21: danger: out-of-bounds write from byte 64 till byte 71 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-126): [#def53]
lsof-4.99.6-rh/lib/lsof.c:387:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:386:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:387:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:387:25: danger: out-of-bounds read from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def54]
lsof-4.99.6-rh/lib/lsof.c:387:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:386:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:387:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:387:25: danger: out-of-bounds write from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def55]
lsof-4.99.6-rh/lib/lsof.c:391:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:391:21: danger: out-of-bounds write from byte 72 till byte 79 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-126): [#def56]
lsof-4.99.6-rh/lib/lsof.c:393:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:392:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:393:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:393:25: danger: out-of-bounds read from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def57]
lsof-4.99.6-rh/lib/lsof.c:393:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:392:24: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:393:25: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:393:25: danger: out-of-bounds write from byte 0 till byte 7 but region ends at byte 0
Error: GCC_ANALYZER_WARNING (CWE-122): [#def58]
lsof-4.99.6-rh/lib/lsof.c:397:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:309:15: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:310:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/lib/lsof.c:312:29: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:348:41: branch_true: following ‘true’ branch (when ‘lf’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:349:21: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:397:21: danger: out-of-bounds write from byte 80 till byte 87 but region ends at byte 0
Error: CPPCHECK_WARNING (CWE-476): [#def59]
lsof-4.99.6-rh/lib/lsof.c:431: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: res
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
lsof-4.99.6-rh/lib/lsof.c:431:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'res'
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following 'false' branch (when 'result' is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:285:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/lsof.c:293:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:302:31: acquire_memory: this call could return NULL
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/lsof.c:428:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:431:5: danger: 'res' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
lsof-4.99.6-rh/lib/lsof.c:431:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘res’
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:285:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:293:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:302:31: acquire_memory: this call could return NULL
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:428:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:431:5: danger: ‘res’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def62]
lsof-4.99.6-rh/lib/lsof.c:432: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: res
Error: CPPCHECK_WARNING (CWE-476): [#def63]
lsof-4.99.6-rh/lib/lsof.c:655: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: selections
Error: GCC_ANALYZER_WARNING (CWE-688): [#def64]
lsof-4.99.6-rh/lib/lsof.c:655:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'selections' where non-null expected
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following 'false' branch (when 'result' is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:285:8: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/lsof.c:293:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/lsof.c:428:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:438:20: branch_true: following 'true' branch (when 'pass != 2')...
lsof-4.99.6-rh/lib/lsof.c:442:14: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:452:21: branch_false: following 'false' branch...
lsof-4.99.6-rh/lib/lsof.c:462:14: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:652:12: branch_true: following 'true' branch (when 'pass == 0')...
lsof-4.99.6-rh/lib/lsof.c:653:51: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:653:51: acquire_memory: this call could return NULL
lsof-4.99.6-rh/lib/lsof.c:655:13: danger: argument 1 ('selections') from [(13)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def65]
lsof-4.99.6-rh/lib/lsof.c:655:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘selections’ where non-null expected
lsof-4.99.6-rh/lib/lsof.c:273:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
lsof-4.99.6-rh/lib/lsof.c:276:17: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:285:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:293:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:307:27: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:428:5: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:438:20: branch_true: following ‘true’ branch (when ‘pass != 2’)...
lsof-4.99.6-rh/lib/lsof.c:442:14: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:452:21: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/lib/lsof.c:462:14: branch_false: ...to here
lsof-4.99.6-rh/lib/lsof.c:652:12: branch_true: following ‘true’ branch (when ‘pass == 0’)...
lsof-4.99.6-rh/lib/lsof.c:653:51: branch_true: ...to here
lsof-4.99.6-rh/lib/lsof.c:653:51: acquire_memory: this call could return NULL
lsof-4.99.6-rh/lib/lsof.c:655:13: danger: argument 1 (‘selections’) from [(13)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
Error: COMPILER_WARNING (CWE-563): [#def66]
lsof-4.99.6-rh/lib/lsof.c:672:21: warning[-Wunused-variable]: unused variable 'int_lst'
Error: COMPILER_WARNING (CWE-563): [#def67]
lsof-4.99.6-rh/lib/lsof.c:672:21: warning[-Wunused-variable]: unused variable ‘int_lst’
Error: COMPILER_WARNING (CWE-563): [#def68]
lsof-4.99.6-rh/lib/lsof.c: scope_hint: In function 'lsof_destroy'
lsof-4.99.6-rh/lib/lsof.c:672:31: warning[-Wunused-variable]: unused variable 'int_lst_next'
Error: COMPILER_WARNING (CWE-563): [#def69]
lsof-4.99.6-rh/lib/lsof.c: scope_hint: In function ‘lsof_destroy’
lsof-4.99.6-rh/lib/lsof.c:672:31: warning[-Wunused-variable]: unused variable ‘int_lst_next’
Error: COMPILER_WARNING (CWE-563): [#def70]
lsof-4.99.6-rh/lib/lsof.c: scope_hint: In function 'lsof_select_pid_pgid'
lsof-4.99.6-rh/lib/lsof.c:942:12: warning[-Wunused-variable]: unused variable 'j'
Error: COMPILER_WARNING (CWE-563): [#def71]
lsof-4.99.6-rh/lib/lsof.c: scope_hint: In function ‘lsof_select_pid_pgid’
lsof-4.99.6-rh/lib/lsof.c:942:12: warning[-Wunused-variable]: unused variable ‘j’
Error: COMPILER_WARNING (CWE-563): [#def72]
lsof-4.99.6-rh/lib/lsof.c: scope_hint: In function 'lsof_select_uid_login'
lsof-4.99.6-rh/lib/lsof.c:1020:12: warning[-Wunused-variable]: unused variable 'j'
Error: COMPILER_WARNING (CWE-563): [#def73]
lsof-4.99.6-rh/lib/lsof.c: scope_hint: In function ‘lsof_select_uid_login’
lsof-4.99.6-rh/lib/lsof.c:1020:12: warning[-Wunused-variable]: unused variable ‘j’
Error: COMPILER_WARNING (CWE-563): [#def74]
lsof-4.99.6-rh/lib/misc.c: scope_hint: In function 'closefrom_shim'
lsof-4.99.6-rh/lib/misc.c:221:9: warning[-Wunused-variable]: unused variable 'i'
Error: COMPILER_WARNING (CWE-563): [#def75]
lsof-4.99.6-rh/lib/misc.c: scope_hint: In function ‘closefrom_shim’
lsof-4.99.6-rh/lib/misc.c:221:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING: [#def76]
lsof-4.99.6-rh/lib/print.c: scope_hint: In function 'printiproto'
lsof-4.99.6-rh/lib/print.c:1117:57: warning[-Wformat-truncation=]: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 8
lsof-4.99.6-rh/lib/print.c:1117:56: note: directive argument in the range [-2147483648, 2147483646]
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 3 and 13 bytes into a destination of size 8
Error: COMPILER_WARNING: [#def77]
lsof-4.99.6-rh/lib/print.c: scope_hint: In function 'printiproto'
lsof-4.99.6-rh/lib/print.c:1119:58: warning[-Wformat-truncation=]: '%d' directive output may be truncated writing between 1 and 9 bytes into a region of size 7
lsof-4.99.6-rh/lib/print.c:1119:56: note: directive argument in the range [0, 214748363]
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 4 and 12 bytes into a destination of size 8
Error: COMPILER_WARNING (CWE-563): [#def78]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function 'prt_pinfo'
lsof-4.99.6-rh/lib/proc.c:988:9: warning[-Wunused-variable]: unused variable 'i'
Error: COMPILER_WARNING (CWE-563): [#def79]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function ‘prt_pinfo’
lsof-4.99.6-rh/lib/proc.c:988:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-563): [#def80]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function 'prt_psxmqinfo'
lsof-4.99.6-rh/lib/proc.c:1087:9: warning[-Wunused-variable]: unused variable 'i'
Error: COMPILER_WARNING (CWE-563): [#def81]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function ‘prt_psxmqinfo’
lsof-4.99.6-rh/lib/proc.c:1087:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-563): [#def82]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function 'prt_evtfdinfo'
lsof-4.99.6-rh/lib/proc.c:1186:9: warning[-Wunused-variable]: unused variable 'i'
Error: COMPILER_WARNING (CWE-563): [#def83]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function ‘prt_evtfdinfo’
lsof-4.99.6-rh/lib/proc.c:1186:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING (CWE-563): [#def84]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function 'prt_ptyinfo'
lsof-4.99.6-rh/lib/proc.c:1299:9: warning[-Wunused-variable]: unused variable 'i'
Error: COMPILER_WARNING (CWE-563): [#def85]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function ‘prt_ptyinfo’
lsof-4.99.6-rh/lib/proc.c:1299:9: warning[-Wunused-variable]: unused variable ‘i’
Error: COMPILER_WARNING: [#def86]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function 'fd_to_string'
lsof-4.99.6-rh/lib/proc.c:1333:37: warning[-Wformat-truncation=]: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 8
lsof-4.99.6-rh/lib/proc.c:1333:36: note: directive argument in the range [-2147483648, 9999]
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 2 and 12 bytes into a destination of size 8
Error: COMPILER_WARNING: [#def87]
lsof-4.99.6-rh/lib/proc.c: scope_hint: In function ‘fd_to_string’
lsof-4.99.6-rh/lib/proc.c:1333:37: warning[-Wformat-truncation=]: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 8
lsof-4.99.6-rh/lib/proc.c:1333:36: note: directive argument in the range [-2147483648, 9999]
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 2 and 12 bytes into a destination of size 8
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
lsof-4.99.6-rh/src/arg.c:942:27: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dn)’
lsof-4.99.6-rh/src/arg.c:841:5: enter_function: entry to ‘enter_dir’
lsof-4.99.6-rh/src/arg.c:863:8: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
lsof-4.99.6-rh/src/arg.c:863:16: branch_false: ...to here
lsof-4.99.6-rh/src/arg.c:869:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/arg.c:871:9: branch_false: ...to here
lsof-4.99.6-rh/src/arg.c:871:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/arg.c:884:10: branch_false: ...to here
lsof-4.99.6-rh/src/arg.c:884:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/arg.c:900:5: branch_false: ...to here
lsof-4.99.6-rh/src/arg.c:910:10: call_function: calling ‘ck_file_arg’ from ‘enter_dir’
lsof-4.99.6-rh/src/arg.c:910:10: return_function: returning to ‘enter_dir’ from ‘ck_file_arg’
lsof-4.99.6-rh/src/arg.c:910:8: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/arg.c:911:9: branch_true: ...to here
lsof-4.99.6-rh/src/arg.c:917:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/arg.c:918:20: branch_true: ...to here
lsof-4.99.6-rh/src/arg.c:918:12: branch_false: following ‘false’ branch (when ‘dn’ is non-NULL)...
lsof-4.99.6-rh/src/arg.c:920:9: branch_false: ...to here
lsof-4.99.6-rh/src/arg.c:925:21: acquire_memory: allocated here
lsof-4.99.6-rh/src/arg.c:925:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/arg.c:937:15: branch_false: ...to here
lsof-4.99.6-rh/src/arg.c:943:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/arg.c:945:16: branch_true: ...to here
lsof-4.99.6-rh/src/arg.c:945:16: branch_true: following ‘true’ branch (when ‘fp’ is NULL)...
lsof-4.99.6-rh/src/arg.c:946:30: branch_true: ...to here
lsof-4.99.6-rh/src/arg.c:942:27: danger: ‘opendir(dn)’ leaks here; was allocated at [(47)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/46)
Error: COMPILER_WARNING (CWE-563): [#def89]
lsof-4.99.6-rh/src/arg.c:1126:21: warning[-Wunused-variable]: unused variable ‘j’
Error: COMPILER_WARNING (CWE-563): [#def90]
lsof-4.99.6-rh/src/arg.c:1126:24: warning[-Wunused-variable]: unused variable ‘mx’
Error: COMPILER_WARNING (CWE-563): [#def91]
lsof-4.99.6-rh/src/arg.c:1126:28: warning[-Wunused-variable]: unused variable ‘n’
Error: COMPILER_WARNING (CWE-563): [#def92]
lsof-4.99.6-rh/src/arg.c:1126:31: warning[-Wunused-variable]: unused variable ‘ni’
Error: COMPILER_WARNING (CWE-563): [#def93]
lsof-4.99.6-rh/src/arg.c:1126:35: warning[-Wunused-variable]: unused variable ‘nx’
Error: COMPILER_WARNING (CWE-563): [#def94]
lsof-4.99.6-rh/src/arg.c: scope_hint: In function ‘enter_id’
lsof-4.99.6-rh/src/arg.c:1127:21: warning[-Wunused-variable]: unused variable ‘s’
Error: COMPILER_WARNING (CWE-563): [#def95]
lsof-4.99.6-rh/src/arg.c:1941:11: warning[-Wunused-variable]: unused variable ‘cp’
Error: COMPILER_WARNING (CWE-563): [#def96]
lsof-4.99.6-rh/src/arg.c:1943:14: warning[-Wunused-variable]: unused variable ‘len’
Error: COMPILER_WARNING (CWE-563): [#def97]
lsof-4.99.6-rh/src/arg.c: scope_hint: In function ‘enter_cmd’
lsof-4.99.6-rh/src/arg.c:1944:21: warning[-Wunused-variable]: unused variable ‘lpt’
Error: COMPILER_WARNING (CWE-563): [#def98]
lsof-4.99.6-rh/src/arg.c:1971:14: warning[-Wunused-variable]: unused variable ‘len’
Error: COMPILER_WARNING (CWE-563): [#def99]
lsof-4.99.6-rh/src/arg.c: scope_hint: In function ‘enter_uid’
lsof-4.99.6-rh/src/arg.c:1972:29: warning[-Wunused-variable]: unused variable ‘lp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
lsof-4.99.6-rh/src/main.c:1460:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘slp’
lsof-4.99.6-rh/src/main.c:54:5: enter_function: entry to ‘main’
lsof-4.99.6-rh/src/main.c:128:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:130:8: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:237:17: call_function: calling ‘GetOpt’ from ‘main’
lsof-4.99.6-rh/src/main.c:237:17: return_function: returning to ‘main’ from ‘GetOpt’
lsof-4.99.6-rh/src/main.c:237:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1008:14: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1146:9: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1150:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1150:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1154:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1154:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1156:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1156:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1158:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1158:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1160:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1160:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1162:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1168:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1176:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1176:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1178:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1178:8: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/main.c:1179:13: branch_true: ...to here
lsof-4.99.6-rh/src/main.c:1193:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1214:14: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1259:18: call_function: calling ‘sv_fmt_str’ from ‘main’
lsof-4.99.6-rh/src/main.c:1259:18: return_function: returning to ‘main’ from ‘sv_fmt_str’
lsof-4.99.6-rh/src/main.c:1261:18: call_function: calling ‘sv_fmt_str’ from ‘main’
lsof-4.99.6-rh/src/main.c:1261:18: return_function: returning to ‘main’ from ‘sv_fmt_str’
lsof-4.99.6-rh/src/main.c:1263:19: call_function: calling ‘sv_fmt_str’ from ‘main’
lsof-4.99.6-rh/src/main.c:1263:19: return_function: returning to ‘main’ from ‘sv_fmt_str’
lsof-4.99.6-rh/src/main.c:1265:18: call_function: calling ‘sv_fmt_str’ from ‘main’
lsof-4.99.6-rh/src/main.c:1265:18: return_function: returning to ‘main’ from ‘sv_fmt_str’
lsof-4.99.6-rh/src/main.c:1267:19: call_function: calling ‘sv_fmt_str’ from ‘main’
lsof-4.99.6-rh/src/main.c:1267:19: return_function: returning to ‘main’ from ‘sv_fmt_str’
lsof-4.99.6-rh/src/main.c:1269:18: call_function: calling ‘sv_fmt_str’ from ‘main’
lsof-4.99.6-rh/src/main.c:1269:18: return_function: returning to ‘main’ from ‘sv_fmt_str’
lsof-4.99.6-rh/src/main.c:1275:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1284:9: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1295:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/main.c:1315:18: branch_false: ...to here
lsof-4.99.6-rh/src/main.c:1315:12: branch_true: following ‘true’ branch (when ‘n != 0’)...
lsof-4.99.6-rh/src/main.c:1333:17: branch_true: ...to here
lsof-4.99.6-rh/src/main.c:1458:44: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/main.c:1458:44: branch_true: ...to here
lsof-4.99.6-rh/src/main.c:1459:33: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/main.c:1460:26: branch_true: ...to here
lsof-4.99.6-rh/src/main.c:1460:26: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/main.c:1460:44: branch_true: ...to here
lsof-4.99.6-rh/src/main.c:1460:26: danger: dereference of NULL ‘slp + (long unsigned int)i * 8’
Error: GCC_ANALYZER_WARNING (CWE-787): [#def101]
lsof-4.99.6-rh/src/print.c:467:18: warning[-Wanalyzer-out-of-bounds]: buffer overflow
lsof-4.99.6-rh/src/print.c:1793:5: enter_function: entry to ‘print_proc’
lsof-4.99.6-rh/src/print.c:1803:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/print.c:1805:9: branch_false: ...to here
lsof-4.99.6-rh/src/print.c:1805:8: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/print.c:1827:9: branch_false: ...to here
lsof-4.99.6-rh/src/print.c:1827:8: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/print.c:1828:19: branch_true: ...to here
lsof-4.99.6-rh/src/print.c:1828:29: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/print.c:1829:17: branch_true: ...to here
lsof-4.99.6-rh/src/print.c:1832:12: branch_false: following ‘false’ branch...
lsof-4.99.6-rh/src/print.c:1835:15: branch_false: ...to here
lsof-4.99.6-rh/src/print.c:1880:25: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/print.c:1881:14: branch_true: ...to here
lsof-4.99.6-rh/src/print.c:1888:12: branch_true: following ‘true’ branch...
lsof-4.99.6-rh/src/print.c:1889:13: branch_true: ...to here
lsof-4.99.6-rh/src/print.c:1889:13: call_function: calling ‘print_file’ from ‘print_proc’
Scan Properties
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-167.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | lsof-4.98.0-9.fc44 |
| diffbase-store-results-to | /tmp/tmpq469hlp2/lsof-4.98.0-9.fc44.tar.xz |
| diffbase-time-created | 2026-06-01 14:55:41 |
| diffbase-time-finished | 2026-06-01 14:57:32 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpq469hlp2/lsof-4.98.0-9.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpq469hlp2/lsof-4.98.0-9.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-167.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | lsof-4.99.6-1.fc45 |
| store-results-to | /tmp/tmpf3guovi5/lsof-4.99.6-1.fc45.tar.xz |
| time-created | 2026-06-01 14:57:44 |
| time-finished | 2026-06-01 14:59:19 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpf3guovi5/lsof-4.99.6-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpf3guovi5/lsof-4.99.6-1.fc45.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |