liburing-2.13-2.fc44 - findings not occurring in liburing-2.13-2.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
<unknown>: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:117:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:121:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:20: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:13: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:129:18: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:129:18: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:135:13: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:135:13: branch_true: ...to here
danger: ‘open("/dev/urandom", 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
<unknown>: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&fname, 0)’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:60:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:72:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:75:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:13: call_function: calling ‘create_test_file’ from ‘main’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:13: return_function: returning to ‘main’ from ‘create_test_file’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:79:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:79:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:80:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:85:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:86:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:91:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:91:13: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:91:13: branch_true: ...to here
danger: ‘open(&fname, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
<unknown>: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:861:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:866:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:869:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:870:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:874:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:874:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:879:19: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:881:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:883:29: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:895:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:906:25: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:918:12: branch_true: following ‘true’ branch (when ‘len == 33554432’)...
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:920:27: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:926:20: branch_false: following ‘false’ branch (when ‘huge_page == 18446744073709551615’)...
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:932:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/send-zerocopy.c:932:15: call_function: calling ‘run_basic_tests’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
liburing-2.13-build/liburing-2.13/examples/helpers.c:71:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
liburing-2.13-build/liburing-2.13/examples/helpers.c:35:14: acquire_resource: stream socket created here
liburing-2.13-build/liburing-2.13/examples/helpers.c:36:12: branch_false: following ‘false’ branch (when ‘fd != -1’)...
liburing-2.13-build/liburing-2.13/examples/helpers.c:41:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/helpers.c:43:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
liburing-2.13-build/liburing-2.13/examples/helpers.c:48:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/helpers.c:60:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
liburing-2.13-build/liburing-2.13/examples/helpers.c:65:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/helpers.c:65:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/examples/helpers.c:66:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/helpers.c:71:1: danger: ‘fd’ leaks here
Error: CPPCHECK_WARNING (CWE-476): [#def5]
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iovecs
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:69:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘iovecs’
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:31:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:36:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:37:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:42:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:43:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:47:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:48:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:53:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:54:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:59:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:59:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:65:18: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:65:18: acquire_memory: this call could return NULL
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:66:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:67:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:67:21: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:67:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:69:17: danger: ‘iovecs + (long unsigned int)i * 16’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def7]
liburing-2.13-build/liburing-2.13/examples/io_uring-close-test.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iovecs
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:105:1: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:249:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:255:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:260:16: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:261:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:265:17: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:266:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:271:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:271:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:273:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:273:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:276:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-cp.c:276:15: call_function: calling ‘copy_file’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def9]
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iovecs
Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:58:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘iovecs’
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:31:12: branch_false: following ‘false’ branch (when ‘argc > 1’)...
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:36:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:37:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:42:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:43:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:48:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:48:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:54:18: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:54:18: acquire_memory: this call could return NULL
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:55:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:56:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:56:21: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:56:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:58:17: danger: ‘iovecs + (long unsigned int)i * 16’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def11]
liburing-2.13-build/liburing-2.13/examples/io_uring-test.c:59: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iovecs
Error: CPPCHECK_WARNING (CWE-682): [#def12]
liburing-2.13-build/liburing-2.13/examples/link-cp.c:73: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def13]
liburing-2.13-build/liburing-2.13/examples/proxy.c:435: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iovs
Error: CPPCHECK_WARNING (CWE-476): [#def14]
liburing-2.13-build/liburing-2.13/examples/proxy.c:436: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iovs
Error: CPPCHECK_WARNING (CWE-476): [#def15]
liburing-2.13-build/liburing-2.13/examples/proxy.c:515: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sstat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
liburing-2.13-build/liburing-2.13/examples/proxy.c:515:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sstat’
liburing-2.13-build/liburing-2.13/examples/proxy.c:550:13: enter_function: entry to ‘__show_stats’
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:572:12: branch_false: following ‘false’ branch (when ‘qps != 0’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:575:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:582:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:583:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:600:17: call_function: calling ‘show_buckets’ from ‘__show_stats’
Error: CPPCHECK_WARNING (CWE-476): [#def17]
liburing-2.13-build/liburing-2.13/examples/proxy.c:516: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sstat
Error: CPPCHECK_WARNING (CWE-476): [#def18]
liburing-2.13-build/liburing-2.13/examples/proxy.c:518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rstat
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
liburing-2.13-build/liburing-2.13/examples/proxy.c:518:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rstat’
liburing-2.13-build/liburing-2.13/examples/proxy.c:550:13: enter_function: entry to ‘__show_stats’
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:572:12: branch_false: following ‘false’ branch (when ‘qps != 0’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:575:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:582:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:583:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:600:17: call_function: calling ‘show_buckets’ from ‘__show_stats’
Error: CPPCHECK_WARNING (CWE-476): [#def20]
liburing-2.13-build/liburing-2.13/examples/proxy.c:519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rstat
Error: GCC_ANALYZER_WARNING (CWE-416): [#def21]
liburing-2.13-build/liburing-2.13/examples/proxy.c:534:22: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘rstat’
liburing-2.13-build/liburing-2.13/examples/proxy.c:550:13: enter_function: entry to ‘__show_stats’
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:572:12: branch_false: following ‘false’ branch (when ‘qps != 0’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:575:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:582:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:583:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:600:17: call_function: calling ‘show_buckets’ from ‘__show_stats’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def22]
liburing-2.13-build/liburing-2.13/examples/proxy.c:546:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘sstat’
liburing-2.13-build/liburing-2.13/examples/proxy.c:550:13: enter_function: entry to ‘__show_stats’
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:572:12: branch_false: following ‘false’ branch (when ‘qps != 0’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:575:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:582:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:583:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:600:17: call_function: calling ‘show_buckets’ from ‘__show_stats’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def23]
liburing-2.13-build/liburing-2.13/examples/proxy.c:547:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘rstat’
liburing-2.13-build/liburing-2.13/examples/proxy.c:550:13: enter_function: entry to ‘__show_stats’
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:569:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:570:24: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:572:12: branch_false: following ‘false’ branch (when ‘qps != 0’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:575:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:582:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/examples/proxy.c:583:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/proxy.c:600:17: call_function: calling ‘show_buckets’ from ‘__show_stats’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:207:35: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*<unknown>, 0)’
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:174:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:180:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:185:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:186:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:191:21: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:194:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:197:39: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:20: branch_false: following ‘false’ branch (when ‘pctx’ is non-NULL)...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:30: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:30: call_function: calling ‘setup_context’ from ‘main’
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:30: return_function: returning to ‘main’ from ‘setup_context’
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:21: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:202:33: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:202:24: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:203:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:207:35: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:207:35: danger: ‘open(*<unknown>, 0)’ leaks here; was opened at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
Error: CPPCHECK_WARNING (CWE-476): [#def25]
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pbundle
Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:214:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pbundle’
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:174:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:180:12: branch_false: following ‘false’ branch (when ‘argc > 2’)...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:185:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:186:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:191:21: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:194:21: branch_true: following ‘true’ branch (when ‘i < argc’)...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:197:39: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:20: branch_false: following ‘false’ branch (when ‘pctx’ is non-NULL)...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:30: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:30: call_function: calling ‘setup_context’ from ‘main’
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:30: return_function: returning to ‘main’ from ‘setup_context’
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:199:21: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:202:33: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:203:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:207:35: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:208:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:213:45: branch_false: ...to here
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:213:45: acquire_memory: this call could return NULL
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:214:17: danger: ‘pbundle’ could be NULL: unchecked value from [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
Error: CPPCHECK_WARNING (CWE-476): [#def27]
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:215: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pbundle
Error: CPPCHECK_WARNING (CWE-476): [#def28]
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:216: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pbundle
Error: CPPCHECK_WARNING (CWE-476): [#def29]
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pbundle
Error: CPPCHECK_WARNING (CWE-476): [#def30]
liburing-2.13-build/liburing-2.13/examples/ucontext-cp.c:218: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pbundle
Error: GCC_ANALYZER_WARNING: [#def31]
liburing-2.13-build/liburing-2.13/examples/zcrx.c:356:13: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘fd’
liburing-2.13-build/liburing-2.13/examples/zcrx.c:344:12: branch_true: following ‘true’ branch (when ‘fd == -1’)...
liburing-2.13-build/liburing-2.13/examples/zcrx.c:345:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/examples/zcrx.c:356:13: danger: ‘fd’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:588:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.13-build/liburing-2.13/test/buf-ring.c:404:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/buf-ring.c:410:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/buf-ring.c:413:20: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/buf-ring.c:415:21: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/buf-ring.c:416:23: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/buf-ring.c:417:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/buf-ring.c:421:21: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/buf-ring.c:421:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/buf-ring.c:424:23: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/buf-ring.c:425:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/buf-ring.c:430:23: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/buf-ring.c:431:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/buf-ring.c:436:23: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/buf-ring.c:436:23: call_function: calling ‘test_mixed_reg’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:588:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sqe’
liburing-2.13-build/liburing-2.13/test/io_uring_enter.c:151:13: enter_function: entry to ‘submit_io’
liburing-2.13-build/liburing-2.13/test/io_uring_enter.c:160:14: call_function: calling ‘setup_file’ from ‘submit_io’
liburing-2.13-build/liburing-2.13/test/io_uring_enter.c:160:14: return_function: returning to ‘submit_io’ from ‘setup_file’
liburing-2.13-build/liburing-2.13/test/io_uring_enter.c:161:21: branch_true: following ‘true’ branch (when ‘i < nr’)...
liburing-2.13-build/liburing-2.13/test/io_uring_enter.c:163:23: call_function: inlined call to ‘io_uring_get_sqe’ from ‘submit_io’
liburing-2.13-build/liburing-2.13/test/io_uring_enter.c:163:23: call_function: inlined call to ‘io_uring_get_sqe’ from ‘submit_io’
liburing-2.13-build/liburing-2.13/test/io_uring_enter.c:165:17: call_function: calling ‘io_prep_read’ from ‘submit_io’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:589:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:576:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:581:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:584:19: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:586:9: call_function: calling ‘probe_support’ from ‘main’
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:586:9: return_function: returning to ‘main’ from ‘probe_support’
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:587:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:592:27: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:592:9: call_function: calling ‘init_buffers’ from ‘main’
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:592:9: return_function: returning to ‘main’ from ‘init_buffers’
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:595:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:596:22: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/vec-regbuf.c:600:17: call_function: calling ‘test_basic’ from ‘main’
Error: CPPCHECK_WARNING (CWE-457): [#def35]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:945: warning[uninitvar]: Uninitialized variable: events
Error: CPPCHECK_WARNING (CWE-457): [#def36]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1024: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def37]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1172: warning[uninitvar]: Uninitialized variable: buf
Error: CPPCHECK_WARNING (CWE-457): [#def38]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1293: warning[uninitvar]: Uninitialized variable: addr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1532:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.13-build/liburing-2.13/test/bind-listen.c:514:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/bind-listen.c:519:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/bind-listen.c:527:17: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/bind-listen.c:528:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/bind-listen.c:530:14: call_function: inlined call to ‘io_uring_opcode_supported’ from ‘main’
liburing-2.13-build/liburing-2.13/test/bind-listen.c:530:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/bind-listen.c:533:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/bind-listen.c:533:15: call_function: calling ‘test_good_server’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".short-read", 0)’
liburing-2.13-build/liburing-2.13/test/short-read.c:18:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/short-read.c:26:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/short-read.c:29:24: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/short-read.c:34:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/short-read.c:38:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/short-read.c:43:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/short-read.c:44:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/short-read.c:49:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/short-read.c:49:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: danger: ‘open(".short-read", 0)’ leaks here; was opened at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".sync_file_range", 2)’
liburing-2.13-build/liburing-2.13/test/fsync.c:146:12: enter_function: entry to ‘test_sync_file_range’
liburing-2.13-build/liburing-2.13/test/fsync.c:154:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/fsync.c:158:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fsync.c:163:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_sync_file_range’
liburing-2.13-build/liburing-2.13/test/fsync.c:163:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_sync_file_range’
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: danger: ‘open(".sync_file_range", 2)’ leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".test_fpos_read", 0)’
liburing-2.13-build/liburing-2.13/test/fpos.c:225:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/fpos.c:230:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/fpos.c:233:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fpos.c:234:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fpos.c:234:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fpos.c:239:28: branch_true: following ‘true’ branch (when ‘test != 8’)...
liburing-2.13-build/liburing-2.13/test/fpos.c:240:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/fpos.c:242:33: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fpos.c:242:33: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fpos.c:244:23: branch_false: following ‘false’ branch (when ‘write == 0’)...
liburing-2.13-build/liburing-2.13/test/fpos.c:246:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fpos.c:246:27: call_function: calling ‘test_read’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 16384)’
liburing-2.13-build/liburing-2.13/test/sqwait.c:42:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/sqwait.c:63:21: branch_true: following ‘true’ branch (when ‘i != 256’)...
liburing-2.13-build/liburing-2.13/test/sqwait.c:64:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/sqwait.c:64:21: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/sqwait.c:70:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/sqwait.c:78:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/sqwait.c:78:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/sqwait.c:79:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/sqwait.c:79:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/sqwait.c:88:21: branch_true: following ‘true’ branch (when ‘i != 10000’)...
liburing-2.13-build/liburing-2.13/test/sqwait.c:91:23: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/sqwait.c:91:23: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/sqwait.c:92:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/sqwait.c:93:31: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/sqwait.c:94:28: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/sqwait.c:95:36: branch_true: ...to here
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: danger: ‘open(fname, 16384)’ leaks here; was opened at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
liburing-2.13-build/liburing-2.13/test/statx.c:155:12: enter_function: entry to ‘test_statx_fd’
liburing-2.13-build/liburing-2.13/test/statx.c:162:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/statx.c:163:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/statx.c:170:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/statx.c:172:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_statx_fd’
liburing-2.13-build/liburing-2.13/test/statx.c:172:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_statx_fd’
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1691:13: danger: ‘open(path, 0)’ leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
liburing-2.13-build/liburing-2.13/src/include/liburing.h:1879:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:335:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:340:12: branch_false: following ‘false’ branch (when ‘argc <= 2’)...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:342:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:342:12: branch_true: following ‘true’ branch (when ‘argc == 2’)...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:348:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:351:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:354:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:354:15: call_function: calling ‘test_thread_shutdown’ from ‘main’
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:354:15: return_function: returning to ‘main’ from ‘test_thread_shutdown’
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:355:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:360:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:360:15: call_function: calling ‘test_exec’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
liburing-2.13-build/liburing-2.13/src/setup.c:359:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sq_array’
liburing-2.13-build/liburing-2.13/src/setup.c:597:16: enter_function: entry to ‘io_uring_mlock_size’
liburing-2.13-build/liburing-2.13/src/setup.c:603:16: call_function: calling ‘io_uring_mlock_size_params’ from ‘io_uring_mlock_size’
Error: GCC_ANALYZER_WARNING: [#def47]
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:95:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘s0’
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:67:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:68:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:72:17: branch_true: following ‘true’ branch (when ‘res != -1’)...
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:73:23: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:74:17: branch_true: following ‘true’ branch (when ‘res != -1’)...
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:78:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:81:17: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:82:32: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/232c93d07b74.c:95:15: danger: ‘s0’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-479): [#def48]
liburing-2.13-build/liburing-2.13/test/35fa71a030ca.c:316:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.13-build/liburing-2.13/test/35fa71a030ca.c:319:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/35fa71a030ca.c:321:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/35fa71a030ca.c:323:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/35fa71a030ca.c:316:9: danger: call to ‘exit’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def49]
liburing-2.13-build/liburing-2.13/test/a4c0b3decb33.c:171:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.13-build/liburing-2.13/test/a4c0b3decb33.c:174:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/a4c0b3decb33.c:176:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/a4c0b3decb33.c:178:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/a4c0b3decb33.c:169:13: enter_function: entry to ‘sig_int’
liburing-2.13-build/liburing-2.13/test/a4c0b3decb33.c:171:9: danger: call to ‘exit’ from within signal handler
Error: GCC_ANALYZER_WARNING: [#def50]
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:56:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘fd’
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:222:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:226:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:229:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:229:15: call_function: calling ‘test’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def51]
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:127: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fds
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:127:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fds’ where non-null expected
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:222:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:226:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:229:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/accept-non-empty.c:229:15: call_function: calling ‘test’ from ‘main’
Error: GCC_ANALYZER_WARNING: [#def53]
liburing-2.13-build/liburing-2.13/test/accept.c:204:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘fd’
liburing-2.13-build/liburing-2.13/test/accept.c:748:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/accept.c:752:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/accept.c:755:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/accept.c:755:15: call_function: calling ‘test_accept’ from ‘main’
Error: CPPCHECK_WARNING (CWE-909): [#def54]
liburing-2.13-build/liburing-2.13/test/bind-listen.c:134: error[uninitStructMember]: Uninitialized struct member: cqe.res
Error: CPPCHECK_WARNING (CWE-401): [#def55]
liburing-2.13-build/liburing-2.13/test/buf-ring.c:353: error[memleak]: Memory leak: buffers
Error: CPPCHECK_WARNING (CWE-476): [#def56]
liburing-2.13-build/liburing-2.13/test/coredump.c:41: error[nullPointer]: Null pointer dereference: ptr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
liburing-2.13-build/liburing-2.13/test/coredump.c:41:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.13-build/liburing-2.13/test/coredump.c:20:13: enter_function: entry to ‘test’
liburing-2.13-build/liburing-2.13/test/coredump.c:28:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/coredump.c:33:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/coredump.c:35:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test’
liburing-2.13-build/liburing-2.13/test/coredump.c:35:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test’
liburing-2.13-build/liburing-2.13/test/coredump.c:41:9: danger: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-479): [#def58]
liburing-2.13-build/liburing-2.13/test/d77a67ed5f27.c:13:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.13-build/liburing-2.13/test/d77a67ed5f27.c:16:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/d77a67ed5f27.c:24:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/d77a67ed5f27.c:27:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/d77a67ed5f27.c:10:13: enter_function: entry to ‘sig_alrm’
liburing-2.13-build/liburing-2.13/test/d77a67ed5f27.c:13:9: danger: call to ‘exit’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:221:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:180:9: branch_false: following ‘false’ branch (when ‘fork_pid >= 0’)...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:181:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:181:12: branch_false: following ‘false’ branch (when ‘fork_pid == 0’)...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:192:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:194:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:197:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:197:12: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:198:22: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:198:22: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:199:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:211:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/defer-taskrun.c:221:1: danger: ‘fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
liburing-2.13-build/liburing-2.13/test/eploop.c:54:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.13-build/liburing-2.13/test/eploop.c:17:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/eploop.c:25:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/eploop.c:28:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/eploop.c:29:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/eploop.c:34:19: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/eploop.c:35:12: branch_false: following ‘false’ branch (when ‘epollfd >= 0’)...
liburing-2.13-build/liburing-2.13/test/eploop.c:40:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/eploop.c:43:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
liburing-2.13-build/liburing-2.13/test/eploop.c:48:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/eploop.c:48:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/eploop.c:53:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/eploop.c:53:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/eploop.c:54:9: danger: dereference of NULL ‘_io_uring_get_sqe(&ring)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
liburing-2.13-build/liburing-2.13/test/evloop.c:53:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.13-build/liburing-2.13/test/evloop.c:19:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/evloop.c:26:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/evloop.c:29:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/evloop.c:30:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/evloop.c:35:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/evloop.c:36:12: branch_false: following ‘false’ branch (when ‘efd >= 0’)...
liburing-2.13-build/liburing-2.13/test/evloop.c:41:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/evloop.c:42:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/evloop.c:47:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/evloop.c:47:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/evloop.c:52:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/evloop.c:52:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘main’
liburing-2.13-build/liburing-2.13/test/evloop.c:53:9: danger: dereference of NULL ‘_io_uring_get_sqe(&ring)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:51:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/thread-self/fail-nth", 2)’
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:47:8: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:48:6: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:51:3: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:51:3: danger: ‘open("/proc/thread-self/fail-nth", 2)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:130:27: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<return-value>’
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:84:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:86:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:88:3: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:89:7: call_function: calling ‘setup_fault’ from ‘main’
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:89:7: return_function: returning to ‘main’ from ‘setup_fault’
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:89:6: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:94:3: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:126:6: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:128:28: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:129:3: call_function: calling ‘inject_fault’ from ‘main’
liburing-2.13-build/liburing-2.13/test/fc2a85cb02ef.c:130:27: danger: ‘<return-value>’ leaks here; was opened at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-910): [#def64]
liburing-2.13-build/liburing-2.13/test/fd-install.c:227:15: warning[-Wanalyzer-fd-use-after-close]: ‘read’ on closed file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/fd-install.c:420:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/fd-install.c:425:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/fd-install.c:428:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fd-install.c:429:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fd-install.c:434:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fd-install.c:434:15: call_function: calling ‘test_working’ from ‘main’
Error: CPPCHECK_WARNING (CWE-401): [#def65]
liburing-2.13-build/liburing-2.13/test/fdinfo-sqpoll.c:42: error[memleak]: Memory leak: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
liburing-2.13-build/liburing-2.13/test/fdinfo-sqpoll.c:59:1: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
liburing-2.13-build/liburing-2.13/test/fdinfo-sqpoll.c:36:15: acquire_memory: allocated here
liburing-2.13-build/liburing-2.13/test/fdinfo-sqpoll.c:40:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/fdinfo-sqpoll.c:41:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/fdinfo-sqpoll.c:59:1: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def67]
liburing-2.13-build/liburing-2.13/test/fdinfo.c:39: error[memleak]: Memory leak: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
liburing-2.13-build/liburing-2.13/test/fdinfo.c:56:1: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
liburing-2.13-build/liburing-2.13/test/fdinfo.c:337:12: enter_function: entry to ‘test_eventfd_read’
liburing-2.13-build/liburing-2.13/test/fdinfo.c:348:12: branch_false: following ‘false’ branch (when ‘ret != 1’)...
liburing-2.13-build/liburing-2.13/test/fdinfo.c:350:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fdinfo.c:350:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
liburing-2.13-build/liburing-2.13/test/fdinfo.c:357:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fdinfo.c:358:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
liburing-2.13-build/liburing-2.13/test/fdinfo.c:362:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_eventfd_read’
liburing-2.13-build/liburing-2.13/test/fdinfo.c:362:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_eventfd_read’
liburing-2.13-build/liburing-2.13/test/fdinfo.c:365:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fdinfo.c:369:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fdinfo.c:369:9: call_function: calling ‘fdinfo_read’ from ‘test_eventfd_read’
Error: CPPCHECK_WARNING (CWE-457): [#def69]
liburing-2.13-build/liburing-2.13/test/file-register.c:726: error[uninitvar]: Uninitialized variable: buffer
Error: GCC_ANALYZER_WARNING (CWE-479): [#def70]
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:56:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:59:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:66:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:69:26: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:70:12: branch_false: following ‘false’ branch (when ‘sock_listen_fd >= 0’)...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:75:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:81:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:86:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:86:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:91:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:91:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:94:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:94:9: call_function: calling ‘add_poll’ from ‘main’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:94:9: return_function: returning to ‘main’ from ‘add_poll’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:95:9: call_function: calling ‘add_accept’ from ‘main’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:95:9: return_function: returning to ‘main’ from ‘add_accept’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:98:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:103:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:54:13: enter_function: entry to ‘alarm_sig’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-poll.c:56:9: danger: call to ‘exit’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def71]
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:63:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:66:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:74:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:77:26: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:78:12: branch_false: following ‘false’ branch (when ‘sock_listen_fd >= 0’)...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:83:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:105:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:110:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:110:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:113:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:113:9: call_function: calling ‘add_timeout’ from ‘main’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:113:9: return_function: returning to ‘main’ from ‘add_timeout’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:114:9: call_function: calling ‘add_accept’ from ‘main’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:114:9: return_function: returning to ‘main’ from ‘add_accept’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:117:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:122:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:61:13: enter_function: entry to ‘alarm_sig’
liburing-2.13-build/liburing-2.13/test/files-exit-hang-timeout.c:63:9: danger: call to ‘exit’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-688): [#def72]
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:42:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(4096)’ where non-null expected
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:28:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:33:18: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:34:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:34:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:39:21: branch_true: following ‘true’ branch (when ‘i == 0’)...
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:40:35: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:40:35: acquire_memory: this call could return NULL
liburing-2.13-build/liburing-2.13/test/fixed-buf-iter.c:42:17: danger: argument 1 (‘malloc(4096)’) from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
liburing-2.13-build/liburing-2.13/test/fixed-link.c:42:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/zero", 0)’
liburing-2.13-build/liburing-2.13/test/fixed-link.c:21:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/fixed-link.c:24:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-link.c:24:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/fixed-link.c:25:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-link.c:30:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-link.c:30:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-link.c:30:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-link.c:36:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/test/fixed-link.c:37:38: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-link.c:42:12: danger: ‘open("/dev/zero", 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:135:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:117:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:121:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:20: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:13: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:129:18: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:129:18: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:135:13: danger: ‘open("/dev/urandom", 0)’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING: [#def75]
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:139:15: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘open("/dev/urandom", 0)’
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:117:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:121:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:20: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:124:13: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:129:18: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:129:18: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:135:13: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:135:13: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/fixed-seg.c:139:15: danger: ‘open("/dev/urandom", 0)’ could be invalid: unchecked value from [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def76]
liburing-2.13-build/liburing-2.13/test/futex-kill.c:41: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: futex
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
liburing-2.13-build/liburing-2.13/test/futex-kill.c:41:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘futex’
liburing-2.13-build/liburing-2.13/test/futex-kill.c:79:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/futex-kill.c:83:15: call_function: calling ‘test’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def78]
liburing-2.13-build/liburing-2.13/test/futex.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: futex
Error: CPPCHECK_WARNING (CWE-476): [#def79]
liburing-2.13-build/liburing-2.13/test/futex.c:211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: futex
Error: CPPCHECK_WARNING (CWE-476): [#def80]
liburing-2.13-build/liburing-2.13/test/futex.c:271: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: futex
Error: CPPCHECK_WARNING (CWE-476): [#def81]
liburing-2.13-build/liburing-2.13/test/futex.c:302: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: futex
Error: CPPCHECK_WARNING (CWE-476): [#def82]
liburing-2.13-build/liburing-2.13/test/futex.c:354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: futex
Error: CPPCHECK_WARNING (CWE-476): [#def83]
liburing-2.13-build/liburing-2.13/test/futex.c:412: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: futex
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
liburing-2.13-build/liburing-2.13/test/helpers.c:187:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
liburing-2.13-build/liburing-2.13/test/helpers.c:184:17: acquire_resource: socket created here
liburing-2.13-build/liburing-2.13/test/helpers.c:185:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/helpers.c:187:17: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/helpers.c:187:17: danger: leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
liburing-2.13-build/liburing-2.13/test/helpers.c:211:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*fd’
liburing-2.13-build/liburing-2.13/test/helpers.c:185:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/helpers.c:187:17: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/helpers.c:188:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/helpers.c:194:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/helpers.c:195:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/helpers.c:198:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/helpers.c:206:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/helpers.c:211:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/helpers.c:211:12: branch_true: following ‘true’ branch (when ‘stream != 0’)...
liburing-2.13-build/liburing-2.13/test/helpers.c:211:23: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/helpers.c:211:23: danger: ‘*fd’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
liburing-2.13-build/liburing-2.13/test/io-cancel.c:194:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/io-cancel.c:487:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/io-cancel.c:492:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/io-cancel.c:495:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/io-cancel.c:495:13: call_function: calling ‘test_dont_cancel_another_ring’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
liburing-2.13-build/liburing-2.13/test/io-cancel.c:194:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/io-cancel.c:487:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/io-cancel.c:492:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/io-cancel.c:495:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/io-cancel.c:495:13: call_function: calling ‘test_dont_cancel_another_ring’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:178:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:480:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:487:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:491:20: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:493:12: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:497:23: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:499:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:505:19: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:511:14: call_function: calling ‘new_io_uring’ from ‘main’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:511:14: return_function: returning to ‘main’ from ‘new_io_uring’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:521:19: call_function: calling ‘test_iovec_size’ from ‘main’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:521:19: return_function: returning to ‘main’ from ‘test_iovec_size’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:524:19: call_function: calling ‘test_max_fds’ from ‘main’
Error: COMPILER_WARNING: [#def89]
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:410:9: warning[-Wstringop-overflow=]: ‘memset’ writing 63 bytes into a region of size 0 overflows the destination
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:411:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:403:12: enter_function: entry to ‘ioring_poll’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:409:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘ioring_poll’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:409:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘ioring_poll’
liburing-2.13-build/liburing-2.13/test/io_uring_register.c:411:9: danger: dereference of NULL ‘_io_uring_get_sqe(ring)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
liburing-2.13-build/liburing-2.13/test/iowait.c:54:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/iowait.c:56:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/iowait.c:61:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/iowait.c:62:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/iowait.c:63:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/iowait.c:54:24: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
liburing-2.13-build/liburing-2.13/test/iowait.c:54:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/iowait.c:56:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/iowait.c:61:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/iowait.c:62:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/iowait.c:63:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/iowait.c:54:24: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def93]
liburing-2.13-build/liburing-2.13/test/iowait.c:54:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[with_iowait]’
liburing-2.13-build/liburing-2.13/test/iowait.c:106:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/iowait.c:114:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/iowait.c:117:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/iowait.c:118:12: branch_false: following ‘false’ branch (when ‘ret != 1’)...
liburing-2.13-build/liburing-2.13/test/iowait.c:120:17: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/iowait.c:120:17: branch_false: following ‘false’ branch (when ‘ret == 0’)...
liburing-2.13-build/liburing-2.13/test/iowait.c:123:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/iowait.c:123:15: call_function: calling ‘test’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
liburing-2.13-build/liburing-2.13/test/lfs-openat-write.c:110:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/tmp", 65536)’
liburing-2.13-build/liburing-2.13/test/lfs-openat-write.c:102:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/lfs-openat-write.c:105:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat-write.c:105:15: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/lfs-openat-write.c:106:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat-write.c:109:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat-write.c:110:12: danger: ‘open("/tmp", 65536)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:93:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:78:12: enter_function: entry to ‘test_linked_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:88:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:91:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:91:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:96:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_linked_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:96:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_linked_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:97:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:98:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:93:24: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:93:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:78:12: enter_function: entry to ‘test_linked_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:88:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:91:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:91:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:96:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_linked_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:96:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_linked_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:97:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:98:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:93:24: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:146:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:132:12: enter_function: entry to ‘test_drained_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:141:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:144:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:144:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:149:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_drained_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:149:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_drained_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:150:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:151:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:146:24: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:146:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:132:12: enter_function: entry to ‘test_drained_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:141:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:144:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:144:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:149:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_drained_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:149:15: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_drained_files’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:150:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:151:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:146:24: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:227:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/tmp", 2097152)’
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:219:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:222:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:222:15: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:223:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:226:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/lfs-openat.c:227:12: danger: ‘open("/tmp", 2097152)’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
liburing-2.13-build/liburing-2.13/test/link-timeout.c:685:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1143:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1148:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1151:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1152:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1157:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1157:15: call_function: calling ‘test_timeout_link_chain1’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
liburing-2.13-build/liburing-2.13/test/link-timeout.c:685:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1143:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1148:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1151:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1152:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1157:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/link-timeout.c:1157:15: call_function: calling ‘test_timeout_link_chain1’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0][0]’
liburing-2.13-build/liburing-2.13/test/min-timeout.c:82:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:91:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: danger: ‘fds[0][0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def103]
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0][1]’
liburing-2.13-build/liburing-2.13/test/min-timeout.c:82:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:91:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: danger: ‘fds[0][1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1][0]’
liburing-2.13-build/liburing-2.13/test/min-timeout.c:82:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:91:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: danger: ‘fds[1][0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1][1]’
liburing-2.13-build/liburing-2.13/test/min-timeout.c:82:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:91:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: danger: ‘fds[1][1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[2][0]’
liburing-2.13-build/liburing-2.13/test/min-timeout.c:82:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:91:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: danger: ‘fds[2][0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def107]
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[2][1]’
liburing-2.13-build/liburing-2.13/test/min-timeout.c:82:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:84:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:94:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:89:21: branch_true: following ‘true’ branch (when ‘i != 8’)...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:90:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/min-timeout.c:91:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/min-timeout.c:83:24: danger: ‘fds[2][1]’ leaks here
Error: CPPCHECK_WARNING (CWE-476): [#def108]
liburing-2.13-build/liburing-2.13/test/mock_file.c:148: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf_src
Error: CPPCHECK_WARNING (CWE-476): [#def109]
liburing-2.13-build/liburing-2.13/test/mock_file.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf_dst
Error: CPPCHECK_WARNING (CWE-401): [#def110]
liburing-2.13-build/liburing-2.13/test/mock_file.c:309: error[memleak]: Memory leak: buffer
Error: GCC_ANALYZER_WARNING (CWE-775): [#def111]
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:93:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:309:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:313:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:316:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:316:15: call_function: calling ‘test’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def112]
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:168:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:309:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:313:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:316:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/msg-ring-fd.c:316:15: call_function: calling ‘test’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def113]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0][0]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:197:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: danger: ‘pipes[0][0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def114]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[0][1]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:197:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: danger: ‘pipes[0][1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[1][0]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:197:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: danger: ‘pipes[1][0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def116]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[1][1]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:197:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: danger: ‘pipes[1][1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[2][0]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:197:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: danger: ‘pipes[2][0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def118]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipes[2][1]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:36: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:195:21: branch_true: following ‘true’ branch (when ‘i != 50’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:26: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:196:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:197:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:198:32: danger: ‘pipes[2][1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def119]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:33: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:13: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:287:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: danger: ‘pipe1[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def120]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:33: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:13: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:287:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: danger: ‘pipe1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def121]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[i]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:370:12: enter_function: entry to ‘test’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:381:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:381:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:386:21: branch_true: following ‘true’ branch (when ‘i != 5’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:387:23: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:387:23: call_function: calling ‘test_simple_drain’ from ‘test’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def122]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe2[0]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:279:12: enter_function: entry to ‘test_simple_drain’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:33: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:13: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:291:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:292:26: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_simple_drain’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:293:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:294:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: danger: ‘pipe2[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def123]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe2[1]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:279:12: enter_function: entry to ‘test_simple_drain’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:33: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:13: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:286:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:291:21: branch_true: following ‘true’ branch (when ‘i != 2’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:292:26: call_function: inlined call to ‘io_uring_get_sqe’ from ‘test_simple_drain’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:293:20: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:294:25: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: danger: ‘pipe2[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe2[i]’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:370:12: enter_function: entry to ‘test’
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:381:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:381:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:386:21: branch_true: following ‘true’ branch (when ‘i != 5’)...
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:387:23: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/multicqes_drain.c:387:23: call_function: calling ‘test_simple_drain’ from ‘test’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:40:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:88:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:92:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:92:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:95:21: branch_true: following ‘true’ branch (when ‘i != 10000’)...
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:96:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:96:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:95:32: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:95:21: branch_true: following ‘true’ branch (when ‘i != 10000’)...
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:96:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:96:21: call_function: calling ‘pipe_bug’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def126]
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:40:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:88:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:92:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:92:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:95:21: branch_true: following ‘true’ branch (when ‘i != 10000’)...
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:96:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:96:21: call_function: calling ‘pipe_bug’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:40:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[i]’
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:88:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:92:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:92:12: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:95:21: branch_true: following ‘true’ branch (when ‘i != 10000’)...
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:96:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/pipe-bug.c:96:21: call_function: calling ‘pipe_bug’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def128]
liburing-2.13-build/liburing-2.13/test/poll-cancel.c:41:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
liburing-2.13-build/liburing-2.13/test/poll-cancel.c:39:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/poll-cancel.c:44:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-cancel.c:41:24: danger: ‘pipe1[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def129]
liburing-2.13-build/liburing-2.13/test/poll-cancel.c:41:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
liburing-2.13-build/liburing-2.13/test/poll-cancel.c:39:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/poll-cancel.c:44:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-cancel.c:41:24: danger: ‘pipe1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def130]
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:151:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:233:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:238:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:241:25: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:242:15: call_function: calling ‘test_downgrade’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:151:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:233:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:238:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:241:25: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-mshot-overflow.c:242:15: call_function: calling ‘test_downgrade’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def132]
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:100:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:98:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:103:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:100:24: danger: ‘pipe1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:139:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:137:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:142:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:139:24: danger: ‘pipe1[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:248:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:236:12: enter_function: entry to ‘do_test_epoll’
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:246:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:251:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:251:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:256:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:259:12: branch_false: following ‘false’ branch (when ‘iou_epoll_add != 0’)...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:265:23: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:265:23: call_function: calling ‘iou_epoll_ctl’ from ‘do_test_epoll’
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:265:23: return_function: returning to ‘do_test_epoll’ from ‘iou_epoll_ctl’
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:266:20: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:269:27: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:269:27: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:274:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:248:24: danger: ‘pipe1[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:248:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:246:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:251:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:251:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:256:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:259:12: branch_true: following ‘true’ branch (when ‘iou_epoll_add == 0’)...
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:260:21: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/poll-v-poll.c:248:24: danger: ‘pipe1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def136]
liburing-2.13-build/liburing-2.13/test/poll.c:45:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
liburing-2.13-build/liburing-2.13/test/poll.c:286:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/poll.c:290:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/poll.c:293:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll.c:293:15: call_function: calling ‘test_basic’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def137]
liburing-2.13-build/liburing-2.13/test/poll.c:45:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
liburing-2.13-build/liburing-2.13/test/poll.c:286:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/poll.c:290:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/poll.c:293:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/poll.c:293:15: call_function: calling ‘test_basic’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def138]
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:86:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&fname, 0)’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:60:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:72:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:75:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:13: call_function: calling ‘create_test_file’ from ‘main’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:13: return_function: returning to ‘main’ from ‘create_test_file’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:79:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:79:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:80:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:85:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:86:12: danger: ‘open(&fname, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:91:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&fname, 0)’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:60:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:72:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:75:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:13: call_function: calling ‘create_test_file’ from ‘main’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:13: return_function: returning to ‘main’ from ‘create_test_file’
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:76:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:79:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:79:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:80:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:85:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:86:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:91:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-inc-file.c:91:13: danger: ‘open(&fname, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def140]
liburing-2.13-build/liburing-2.13/test/read-mshot.c:286:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/read-mshot.c:497:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/read-mshot.c:501:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/read-mshot.c:504:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-mshot.c:504:15: call_function: calling ‘test’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
liburing-2.13-build/liburing-2.13/test/read-mshot.c:286:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/read-mshot.c:497:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/read-mshot.c:501:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/read-mshot.c:504:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/read-mshot.c:504:15: call_function: calling ‘test’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def142]
liburing-2.13-build/liburing-2.13/test/read-mshot.c:326: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: inc_index
Error: CPPCHECK_WARNING (CWE-476): [#def143]
liburing-2.13-build/liburing-2.13/test/recv-bundle-short-ooo.c:325: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: test_data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
liburing-2.13-build/liburing-2.13/test/recv-bundle-short-ooo.c:325:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘test_data’
liburing-2.13-build/liburing-2.13/test/recv-bundle-short-ooo.c:416:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/recv-bundle-short-ooo.c:420:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/recv-bundle-short-ooo.c:423:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/recv-bundle-short-ooo.c:423:15: call_function: calling ‘test_recv_multi_large_packet_isolate_ring’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def145]
liburing-2.13-build/liburing-2.13/test/recv-inc-ooo.c:298: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: test_data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
liburing-2.13-build/liburing-2.13/test/recv-inc-ooo.c:298:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘test_data’
liburing-2.13-build/liburing-2.13/test/recv-inc-ooo.c:377:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/recv-inc-ooo.c:381:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/recv-inc-ooo.c:384:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/recv-inc-ooo.c:384:15: call_function: calling ‘test_recv_incr’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def147]
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:278: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:278:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:369:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:373:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:376:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:376:15: call_function: calling ‘test’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:339:1: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:369:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:373:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:376:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/recv-msgall-stream.c:376:15: call_function: calling ‘test’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def150]
liburing-2.13-build/liburing-2.13/test/recv-msgall.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
liburing-2.13-build/liburing-2.13/test/recv-msgall.c:164:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
liburing-2.13-build/liburing-2.13/test/recv-msgall.c:225:12: enter_function: entry to ‘test’
liburing-2.13-build/liburing-2.13/test/recv-msgall.c:236:12: branch_false: following ‘false’ branch (when ‘ret == 0’)...
liburing-2.13-build/liburing-2.13/test/recv-msgall.c:241:9: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/recv-msgall.c:242:9: call_function: calling ‘do_send’ from ‘test’
Error: CPPCHECK_WARNING (CWE-476): [#def152]
liburing-2.13-build/liburing-2.13/test/recv-mshot-fair.c:344: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def153]
liburing-2.13-build/liburing-2.13/test/recv-mshot-fair.c:344:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
liburing-2.13-build/liburing-2.13/test/recv-mshot-fair.c:446:12: enter_function: entry to ‘run_tests’
liburing-2.13-build/liburing-2.13/test/recv-mshot-fair.c:451:15: call_function: calling ‘test’ from ‘run_tests’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
liburing-2.13-build/liburing-2.13/test/recv-mshot-fair.c:386:1: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
liburing-2.13-build/liburing-2.13/test/recv-mshot-fair.c:446:12: enter_function: entry to ‘run_tests’
liburing-2.13-build/liburing-2.13/test/recv-mshot-fair.c:451:15: call_function: calling ‘test’ from ‘run_tests’
Error: CPPCHECK_WARNING (CWE-401): [#def155]
liburing-2.13-build/liburing-2.13/test/regbuf-clone.c:37: error[memleak]: Memory leak: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
liburing-2.13-build/liburing-2.13/test/regbuf-clone.c:54:1: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
liburing-2.13-build/liburing-2.13/test/regbuf-clone.c:624:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/regbuf-clone.c:628:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/regbuf-clone.c:631:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/regbuf-clone.c:632:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/regbuf-clone.c:637:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/regbuf-clone.c:637:15: call_function: calling ‘test’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def157]
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:34:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:563:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:567:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:570:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:570:15: call_function: calling ‘test_restrictions_sqe_op’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def158]
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:34:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:563:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:567:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:570:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:570:15: call_function: calling ‘test_restrictions_sqe_op’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:450:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:448:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:453:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:450:24: danger: ‘pipe1[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:450:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:448:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:453:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/register-restrictions.c:450:24: danger: ‘pipe1[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
liburing-2.13-build/liburing-2.13/test/ring-leak.c:165:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/ring-leak.c:163:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ring-leak.c:167:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ring-leak.c:168:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ring-leak.c:172:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ring-leak.c:172:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ring-leak.c:176:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ring-leak.c:165:24: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
liburing-2.13-build/liburing-2.13/test/ring-leak.c:165:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/ring-leak.c:163:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ring-leak.c:167:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ring-leak.c:168:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ring-leak.c:172:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ring-leak.c:172:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ring-leak.c:176:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ring-leak.c:165:24: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING: [#def163]
liburing-2.13-build/liburing-2.13/test/ring-leak2.c:115:13: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘sock_listen_fd’
liburing-2.13-build/liburing-2.13/test/ring-leak2.c:111:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ring-leak2.c:115:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ring-leak2.c:115:13: danger: ‘sock_listen_fd’ could be invalid
Error: CPPCHECK_WARNING (CWE-457): [#def164]
liburing-2.13-build/liburing-2.13/test/ring-query.c:42: error[uninitvar]: Uninitialized variable: &op
Error: CPPCHECK_WARNING (CWE-457): [#def165]
liburing-2.13-build/liburing-2.13/test/ring-query.c:82: error[uninitvar]: Uninitialized variable: &op
Error: CPPCHECK_WARNING (CWE-457): [#def166]
liburing-2.13-build/liburing-2.13/test/ring-query.c:125: error[uninitvar]: Uninitialized variable: &op3
Error: CPPCHECK_WARNING (CWE-457): [#def167]
liburing-2.13-build/liburing-2.13/test/ring-query.c:130: error[uninitvar]: Uninitialized variable: &op2
Error: CPPCHECK_WARNING (CWE-457): [#def168]
liburing-2.13-build/liburing-2.13/test/ring-query.c:136: error[uninitvar]: Uninitialized variable: &op1
Error: CPPCHECK_WARNING (CWE-457): [#def169]
liburing-2.13-build/liburing-2.13/test/ring-query.c:169: error[uninitvar]: Uninitialized variable: &op2
Error: CPPCHECK_WARNING (CWE-457): [#def170]
liburing-2.13-build/liburing-2.13/test/ring-query.c:174: error[uninitvar]: Uninitialized variable: &op1
Error: CPPCHECK_WARNING (CWE-457): [#def171]
liburing-2.13-build/liburing-2.13/test/ring-query.c:207: error[uninitvar]: Uninitialized variable: &op
Error: CPPCHECK_WARNING (CWE-457): [#def172]
liburing-2.13-build/liburing-2.13/test/ring-query.c:240: error[uninitvar]: Uninitialized variable: &op
Error: GCC_ANALYZER_WARNING (CWE-775): [#def173]
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:97:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:95:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:100:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:100:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:105:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:97:24: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def174]
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:97:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:95:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:100:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:100:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:105:13: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/ringbuf-status.c:97:24: danger: ‘fds[1]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
liburing-2.13-build/liburing-2.13/test/short-read.c:44:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".short-read", 0)’
liburing-2.13-build/liburing-2.13/test/short-read.c:26:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/short-read.c:29:24: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/short-read.c:34:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/short-read.c:38:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/short-read.c:43:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/short-read.c:44:12: danger: ‘open(".short-read", 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING: [#def176]
liburing-2.13-build/liburing-2.13/test/shutdown.c:52:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
liburing-2.13-build/liburing-2.13/test/shutdown.c:35:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/shutdown.c:38:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/shutdown.c:43:9: branch_true: following ‘true’ branch (when ‘ret != -1’)...
liburing-2.13-build/liburing-2.13/test/shutdown.c:44:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/shutdown.c:45:9: branch_true: following ‘true’ branch (when ‘ret != -1’)...
liburing-2.13-build/liburing-2.13/test/shutdown.c:47:9: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/shutdown.c:51:9: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/shutdown.c:52:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/shutdown.c:52:15: danger: ‘recv_s0’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def177]
liburing-2.13-build/liburing-2.13/test/socket-nb.c:45:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
liburing-2.13-build/liburing-2.13/test/socket-nb.c:115:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/socket-nb.c:119:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/socket-nb.c:122:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/socket-nb.c:122:15: call_function: calling ‘test’ from ‘main’
Error: GCC_ANALYZER_WARNING: [#def178]
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:47:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:31:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:34:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:39:9: branch_true: following ‘true’ branch (when ‘ret != -1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:40:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:41:9: branch_true: following ‘true’ branch (when ‘ret != -1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:43:9: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:46:9: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:47:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw-eagain.c:47:15: danger: ‘recv_s0’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def179]
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:49:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:33:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:36:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:41:9: branch_true: following ‘true’ branch (when ‘ret != -1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:42:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:43:9: branch_true: following ‘true’ branch (when ‘ret != -1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:45:9: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:48:9: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:49:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw-offset.c:49:15: danger: ‘recv_s0’ could be invalid
Error: GCC_ANALYZER_WARNING: [#def180]
liburing-2.13-build/liburing-2.13/test/socket-rw.c:49:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
liburing-2.13-build/liburing-2.13/test/socket-rw.c:33:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw.c:36:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw.c:41:9: branch_true: following ‘true’ branch (when ‘ret != -1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw.c:42:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw.c:43:9: branch_true: following ‘true’ branch (when ‘ret != -1’)...
liburing-2.13-build/liburing-2.13/test/socket-rw.c:45:9: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw.c:48:9: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/socket-rw.c:49:15: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/socket-rw.c:49:15: danger: ‘recv_s0’ could be invalid
Error: GCC_ANALYZER_WARNING (CWE-775): [#def181]
liburing-2.13-build/liburing-2.13/test/splice.c:111:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
liburing-2.13-build/liburing-2.13/test/splice.c:444:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/splice.c:452:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/splice.c:455:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/splice.c:456:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/splice.c:460:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/splice.c:460:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/splice.c:465:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/splice.c:465:15: call_function: calling ‘init_splice_ctx’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def182]
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:99:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 16384)’
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:91:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:92:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:99:22: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:102:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:103:40: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:106:20: branch_false: following ‘false’ branch (when ‘i == 0’)...
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:110:23: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/sq-poll-share.c:99:22: danger: ‘open(fname, 16384)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
liburing-2.13-build/liburing-2.13/test/submit-reuse.c:149:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname1, 0)’
liburing-2.13-build/liburing-2.13/test/submit-reuse.c:193:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/submit-reuse.c:197:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
liburing-2.13-build/liburing-2.13/test/submit-reuse.c:200:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/submit-reuse.c:203:23: call_function: calling ‘test_reuse’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:39:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/ttyS0", 2050)’
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:31:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:34:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:34:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:35:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:38:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:39:12: danger: ‘open("/dev/ttyS0", 2050)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def185]
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:41:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/ttyS0", 2050)’
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:31:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:34:14: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:34:14: acquire_resource: opened here
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:35:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:38:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:39:12: branch_false: following ‘false’ branch (when ‘ret != 1’)...
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:41:17: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/tty-write-dpoll.c:41:17: danger: ‘open("/dev/ttyS0", 2050)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-664): [#def186]
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:163: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end().
Error: GCC_ANALYZER_WARNING (CWE-404): [#def187]
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:163:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:1217:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:1224:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:1227:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:1227:15: call_function: calling ‘ublk_ctrl_init’ from ‘main’
Error: CPPCHECK_WARNING (CWE-664): [#def188]
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:171: error[va_end_missing]: va_list 'ap' was opened but not closed by va_end().
Error: CPPCHECK_WARNING (CWE-476): [#def189]
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:356: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dev
Error: GCC_ANALYZER_WARNING (CWE-476): [#def190]
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:356:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dev’
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:1217:5: enter_function: entry to ‘main’
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:1224:12: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:1227:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:1227:15: call_function: calling ‘ublk_ctrl_init’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def191]
liburing-2.13-build/liburing-2.13/test/uring_cmd_ublk.c:357: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dev
Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:74:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:68:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:71:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:72:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:73:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:74:24: danger: ‘fds[0]’ leaks here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:74:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:68:12: branch_false: following ‘false’ branch...
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:71:15: branch_false: ...to here
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:72:12: branch_true: following ‘true’ branch...
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:73:17: branch_true: ...to here
liburing-2.13-build/liburing-2.13/test/wakeup-hang.c:74:24: danger: ‘fds[1]’ leaks here
Scan Properties
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| 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.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| 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-193.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 | liburing-2.13-2.fc44 |
| diffbase-store-results-to | /tmp/tmp9p1w2fgm/liburing-2.13-2.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 17:59:50 |
| diffbase-time-finished | 2026-08-03 18:02:28 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp9p1w2fgm/liburing-2.13-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp9p1w2fgm/liburing-2.13-2.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-193.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 | liburing-2.13-2.fc44 |
| store-results-to | /tmp/tmp9p1w2fgm/liburing-2.13-2.fc44.tar.xz |
| time-created | 2026-08-03 17:59:50 |
| time-finished | 2026-08-03 18:02:28 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp9p1w2fgm/liburing-2.13-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp9p1w2fgm/liburing-2.13-2.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |