liburing-2.6-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
liburing-2.6-build/liburing-2.6/examples/helpers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
liburing-2.6-build/liburing-2.6/examples/helpers.c: scope_hint: In function ‘setup_listening_socket’
liburing-2.6-build/liburing-2.6/examples/helpers.c:29:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
#   27|   	if (fd == -1) {
#   28|   		perror("socket()");
#   29|-> 		return -1;
#   30|   	}
#   31|   

Error: CPPCHECK_WARNING: [#def3]
liburing-2.6-build/liburing-2.6/examples/io_uring-close-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def4]
liburing-2.6-build/liburing-2.6/examples/io_uring-close-test.c:68:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'iovecs'
#   66|   	for (i = 0; i < QD; i++) {
#   67|   		if (posix_memalign(&buf, 4096, 4096))
#   68|-> 			return 1;
#   69|   		iovecs[i].iov_base = buf;
#   70|   		iovecs[i].iov_len = 4096;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
liburing-2.6-build/liburing-2.6/examples/io_uring-close-test.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/examples/io_uring-close-test.c:69:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘iovecs’
#   67|   		if (posix_memalign(&buf, 4096, 4096))
#   68|   			return 1;
#   69|-> 		iovecs[i].iov_base = buf;
#   70|   		iovecs[i].iov_len = 4096;
#   71|   		fsize += 4096;

Error: CPPCHECK_WARNING: [#def6]
liburing-2.6-build/liburing-2.6/examples/io_uring-cp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def7]
liburing-2.6-build/liburing-2.6/examples/io_uring-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def8]
liburing-2.6-build/liburing-2.6/examples/io_uring-test.c:57:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'iovecs'
#   55|   	for (i = 0; i < QD; i++) {
#   56|   		if (posix_memalign(&buf, 4096, 4096))
#   57|-> 			return 1;
#   58|   		iovecs[i].iov_base = buf;
#   59|   		iovecs[i].iov_len = 4096;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
liburing-2.6-build/liburing-2.6/examples/io_uring-test.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/examples/io_uring-test.c:58:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘iovecs’
#   56|   		if (posix_memalign(&buf, 4096, 4096))
#   57|   			return 1;
#   58|-> 		iovecs[i].iov_base = buf;
#   59|   		iovecs[i].iov_len = 4096;
#   60|   		fsize += 4096;

Error: CPPCHECK_WARNING: [#def10]
liburing-2.6-build/liburing-2.6/examples/io_uring-udp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def11]
liburing-2.6-build/liburing-2.6/examples/io_uring-udp.c:166:10: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  164|   		}
#  165|   
#  166|-> 		port = ntohs(((struct sockaddr_in *)&s)->sin_port);
#  167|   		fprintf(stderr, "port bound to %d\n", port);
#  168|   	}

Error: CPPCHECK_WARNING: [#def12]
liburing-2.6-build/liburing-2.6/examples/link-cp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
liburing-2.6-build/liburing-2.6/examples/napi-busy-poll-client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
liburing-2.6-build/liburing-2.6/examples/napi-busy-poll-server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
liburing-2.6-build/liburing-2.6/examples/poll-bench.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
liburing-2.6-build/liburing-2.6/examples/proxy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
liburing-2.6-build/liburing-2.6/examples/rsrc-update-bench.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
liburing-2.6-build/liburing-2.6/examples/send-zerocopy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
liburing-2.6-build/liburing-2.6/examples/ucontext-cp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
liburing-2.6-build/liburing-2.6/examples/ucontext-cp.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/examples/ucontext-cp.c:207:34: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*<unknown>, 0)’
/usr/include/signal.h:328: included_from: Included from here.
liburing-2.6-build/liburing-2.6/examples/ucontext-cp.c:14: included_from: Included from here.
#  205|   			return 1;
#  206|   		}
#  207|-> 		outfd = open(argv[i + 1], O_WRONLY | O_CREAT | O_TRUNC, 0644);
#  208|   		if (outfd < 0) {
#  209|   			perror("open outfile");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
liburing-2.6-build/liburing-2.6/examples/ucontext-cp.c:214:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pbundle’
#  212|   
#  213|   		arguments_bundle *pbundle = malloc(sizeof(*pbundle));
#  214|-> 		pbundle->pctx = pctx;
#  215|   		pbundle->psuccess = &success;
#  216|   		pbundle->pfailure = &failure;

Error: CPPCHECK_WARNING: [#def22]
liburing-2.6-build/liburing-2.6/src/ffi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:336:24: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
liburing-2.6-build/liburing-2.6/examples/io_uring-cp.c: scope_hint: In function ‘queue_read’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘queue_read’
liburing-2.6-build/liburing-2.6/examples/io_uring-cp.c: scope_hint: In function ‘queue_read’
#  334|   IOURINGINLINE void io_uring_sqe_set_data(struct io_uring_sqe *sqe, void *data)
#  335|   {
#  336|-> 	sqe->user_data = (unsigned long) data;
#  337|   }
#  338|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:394:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.6-build/liburing-2.6/test/7ad0e4b2f83c.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/7ad0e4b2f83c.c: scope_hint: In function ‘main’
#  392|   				    __u64 offset)
#  393|   {
#  394|-> 	sqe->opcode = (__u8) op;
#  395|   	sqe->fd = fd;
#  396|   	sqe->off = offset;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:394:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sqe’
liburing-2.6-build/liburing-2.6/test/io_uring_enter.c: scope_hint: In function ‘io_prep_read’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘io_prep_read’
liburing-2.6-build/liburing-2.6/test/io_uring_enter.c: scope_hint: In function ‘io_prep_read’
liburing-2.6-build/liburing-2.6/test/io_uring_enter.c:18: included_from: Included from here.
#  392|   				    __u64 offset)
#  393|   {
#  394|-> 	sqe->opcode = (__u8) op;
#  395|   	sqe->fd = fd;
#  396|   	sqe->off = offset;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:395:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.6-build/liburing-2.6/test/io_uring_passthrough.c: scope_hint: In function ‘test_io_uring_submit_enters’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_io_uring_submit_enters’
liburing-2.6-build/liburing-2.6/test/io_uring_passthrough.c: scope_hint: In function ‘test_io_uring_submit_enters’
#  393|   {
#  394|   	sqe->opcode = (__u8) op;
#  395|-> 	sqe->fd = fd;
#  396|   	sqe->off = offset;
#  397|   	sqe->addr = (unsigned long) addr;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:396:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".short-read", 0)’
liburing-2.6-build/liburing-2.6/test/short-read.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/short-read.c: scope_hint: In function ‘main’
#  394|   	sqe->opcode = (__u8) op;
#  395|   	sqe->fd = fd;
#  396|-> 	sqe->off = offset;
#  397|   	sqe->addr = (unsigned long) addr;
#  398|   	sqe->len = len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:398:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.6-build/liburing-2.6/test/recv-multishot.c: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/recv-multishot.c: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/recv-multishot.c: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/recv-multishot.c: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/recv-multishot.c: scope_hint: In function ‘test’
#  396|   	sqe->off = offset;
#  397|   	sqe->addr = (unsigned long) addr;
#  398|-> 	sqe->len = len;
#  399|   }
#  400|   

Error: CPPCHECK_WARNING (CWE-457): [#def29]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:724: warning[uninitvar]: Uninitialized variable: buf
#  722|   				      void *buf, unsigned nbytes, __u64 offset)
#  723|   {
#  724|-> 	io_uring_prep_rw(IORING_OP_READ, sqe, fd, buf, nbytes, offset);
#  725|   }
#  726|   

Error: CPPCHECK_WARNING (CWE-457): [#def30]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:822: warning[uninitvar]: Uninitialized variable: buf
#  820|   				      void *buf, size_t len, int flags)
#  821|   {
#  822|-> 	io_uring_prep_rw(IORING_OP_RECV, sqe, sockfd, buf, (__u32) len, 0);
#  823|   	sqe->msg_flags = (__u32) flags;
#  824|   }

Error: CPPCHECK_WARNING (CWE-457): [#def31]
liburing-2.6-build/liburing-2.6/src/include/liburing.h:932: warning[uninitvar]: Uninitialized variable: addr
#  930|   						 int bgid, int bid)
#  931|   {
#  932|-> 	io_uring_prep_rw(IORING_OP_PROVIDE_BUFFERS, sqe, nr, addr, (__u32) len,
#  933|   				(__u64) bid);
#  934|   	sqe->buf_group = (__u16) bgid;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/src/include/liburing.h:1414:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".short-read", 0)’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
# 1412|   {
# 1413|   	struct io_uring_sq *sq = &ring->sq;
# 1414|-> 	unsigned int head, next = sq->sqe_tail + 1;
# 1415|   	int shift = 0;
# 1416|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
liburing-2.6-build/liburing-2.6/test/helpers.h:12: included_from: Included from here.
liburing-2.6-build/liburing-2.6/test/fpos.c:14: included_from: Included from here.
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_read’
liburing-2.6-build/liburing-2.6/src/include/liburing.h:1414:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".test_fpos_read", 0)’
liburing-2.6-build/liburing-2.6/test/fpos.c:12: included_from: Included from here.
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_read’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_read’
# 1412|   {
# 1413|   	struct io_uring_sq *sq = &ring->sq;
# 1414|-> 	unsigned int head, next = sq->sqe_tail + 1;
# 1415|   	int shift = 0;
# 1416|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
liburing-2.6-build/liburing-2.6/test/helpers.h:12: included_from: Included from here.
liburing-2.6-build/liburing-2.6/test/statx.c:16: included_from: Included from here.
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_statx_fd’
liburing-2.6-build/liburing-2.6/src/include/liburing.h:1414:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path, 0)’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_statx_fd’
liburing-2.6-build/liburing-2.6/test/statx.c: scope_hint: In function ‘test_statx_fd’
liburing-2.6-build/liburing-2.6/test/statx.c: scope_hint: In function ‘test_statx_fd’
liburing-2.6-build/liburing-2.6/test/statx.c: scope_hint: In function ‘test_statx_fd’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_statx_fd’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_statx_fd’
# 1412|   {
# 1413|   	struct io_uring_sq *sq = &ring->sq;
# 1414|-> 	unsigned int head, next = sq->sqe_tail + 1;
# 1415|   	int shift = 0;
# 1416|   

Error: CPPCHECK_WARNING: [#def35]
liburing-2.6-build/liburing-2.6/src/queue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
liburing-2.6-build/liburing-2.6/src/register.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def37]
liburing-2.6-build/liburing-2.6/src/register.c:117:20: warning[core.UndefinedBinaryOperatorResult]: The left operand of '<' is a garbage value
#  115|   		return ret;
#  116|   
#  117|-> 	if (rlim.rlim_cur < nr) {
#  118|   		rlim.rlim_cur += nr;
#  119|   		__sys_setrlimit(RLIMIT_NOFILE, &rlim);

Error: CPPCHECK_WARNING: [#def38]
liburing-2.6-build/liburing-2.6/src/setup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
liburing-2.6-build/liburing-2.6/src/setup.c: scope_hint: In function ‘io_uring_queue_exit’
liburing-2.6-build/liburing-2.6/src/setup.c:439:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.6-build/liburing-2.6/src/setup.c: scope_hint: In function ‘io_uring_queue_exit’
liburing-2.6-build/liburing-2.6/src/arch/syscall-defs.h:74:22: note: in expansion of macro ‘__do_syscall2’
liburing-2.6-build/liburing-2.6/src/setup.c: scope_hint: In function ‘io_uring_queue_exit’
liburing-2.6-build/liburing-2.6/src/setup.c: scope_hint: In function ‘io_uring_queue_exit’
liburing-2.6-build/liburing-2.6/src/setup.c: scope_hint: In function ‘io_uring_queue_exit’
#  437|   		if (!(ring->int_flags & INT_FLAG_APP_MEM)) {
#  438|   			__sys_munmap(sq->sqes,
#  439|-> 				*sq->kring_entries * sizeof(struct io_uring_sqe));
#  440|   			io_uring_unmap_rings(sq, cq);
#  441|   		}

Error: CPPCHECK_WARNING: [#def40]
liburing-2.6-build/liburing-2.6/src/syscall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
liburing-2.6-build/liburing-2.6/src/version.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
liburing-2.6-build/liburing-2.6/test/232c93d07b74.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def43]
liburing-2.6-build/liburing-2.6/test/232c93d07b74.c: scope_hint: In function ‘rcv’
liburing-2.6-build/liburing-2.6/test/232c93d07b74.c:94:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘s0’
liburing-2.6-build/liburing-2.6/test/232c93d07b74.c:12: included_from: Included from here.
#   92|   		assert(res != -1);
#   93|   	}
#   94|-> 	res = listen(s0, 128);
#   95|   	assert(res != -1);
#   96|   

Error: CLANG_WARNING: [#def44]
liburing-2.6-build/liburing-2.6/test/232c93d07b74.c:148:19: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#  146|   
#  147|   					for (i = 0; i < cqe->res; i++) {
#  148|-> 						if (buff[i] != expected_byte) {
#  149|   							fprintf(stderr,
#  150|   								"Received %d, wanted %d\n",

Error: CPPCHECK_WARNING: [#def45]
liburing-2.6-build/liburing-2.6/test/35fa71a030ca.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479): [#def46]
liburing-2.6-build/liburing-2.6/test/35fa71a030ca.c: scope_hint: In function ‘sig_int’
liburing-2.6-build/liburing-2.6/test/35fa71a030ca.c:315:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.6-build/liburing-2.6/test/35fa71a030ca.c:315:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
#  313|   static void sig_int(int sig)
#  314|   {
#  315|-> 	exit(0);
#  316|   }
#  317|   

Error: CPPCHECK_WARNING: [#def47]
liburing-2.6-build/liburing-2.6/test/500f9fbadef8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
liburing-2.6-build/liburing-2.6/test/7ad0e4b2f83c.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
liburing-2.6-build/liburing-2.6/test/8a9973408177.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
liburing-2.6-build/liburing-2.6/test/917257daa0fe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
liburing-2.6-build/liburing-2.6/test/a0908ae19763.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
liburing-2.6-build/liburing-2.6/test/a4c0b3decb33.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479): [#def53]
liburing-2.6-build/liburing-2.6/test/a4c0b3decb33.c: scope_hint: In function ‘sig_int’
liburing-2.6-build/liburing-2.6/test/a4c0b3decb33.c:170:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.6-build/liburing-2.6/test/a4c0b3decb33.c:170:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
#  168|   static void sig_int(int sig)
#  169|   {
#  170|-> 	exit(0);
#  171|   }
#  172|   

Error: CPPCHECK_WARNING: [#def54]
liburing-2.6-build/liburing-2.6/test/accept-link.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
liburing-2.6-build/liburing-2.6/test/accept-reuse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def56]
liburing-2.6-build/liburing-2.6/test/accept-reuse.c:81:2: warning[deadcode.DeadStores]: Value stored to 'listen_fd' is never read
#   79|   
#   80|   	sqe = &io_uring.sq.sqes[0];
#   81|-> 	listen_fd = -1;
#   82|   
#   83|   	ret = socket(addr_info->ai_family, SOCK_STREAM,

Error: CLANG_WARNING: [#def57]
liburing-2.6-build/liburing-2.6/test/accept-reuse.c:117:2: warning[deadcode.DeadStores]: Value stored to 'connect_fd' is never read
#  115|   	}
#  116|   
#  117|-> 	connect_fd = -1;
#  118|   	ret = socket(addr_info->ai_family, SOCK_STREAM, addr_info->ai_protocol);
#  119|   	if (ret < 0) {

Error: CPPCHECK_WARNING: [#def58]
liburing-2.6-build/liburing-2.6/test/accept-test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def59]
liburing-2.6-build/liburing-2.6/test/accept.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def60]
liburing-2.6-build/liburing-2.6/test/accept.c: scope_hint: In function ‘start_accept_listen’
liburing-2.6-build/liburing-2.6/test/accept.c:200:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘fd’
#  198|   	ret = t_bind_ephemeral_port(fd, addr);
#  199|   	assert(!ret);
#  200|-> 	ret = listen(fd, 128);
#  201|   	assert(ret != -1);
#  202|   

Error: CLANG_WARNING: [#def61]
liburing-2.6-build/liburing-2.6/test/accept.c:303:4: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  301|   			else
#  302|   				no_accept = 1;
#  303|-> 			ret = T_EXIT_SKIP;
#  304|   			goto out;
#  305|   		} else if (s_fd[i] < 0) {

Error: CPPCHECK_WARNING: [#def62]
liburing-2.6-build/liburing-2.6/test/across-fork.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
liburing-2.6-build/liburing-2.6/test/b19062a56726.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
liburing-2.6-build/liburing-2.6/test/b5837bd5311d.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
liburing-2.6-build/liburing-2.6/test/buf-ring-nommap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
liburing-2.6-build/liburing-2.6/test/buf-ring-put.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def67]
liburing-2.6-build/liburing-2.6/test/buf-ring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-401): [#def68]
liburing-2.6-build/liburing-2.6/test/buf-ring.c:349: error[memleak]: Memory leak: buffers
#  347|   	read_fd = open("/dev/zero", O_RDONLY);
#  348|   	if (read_fd < 0)
#  349|-> 		return 1;
#  350|   
#  351|   	for (loop = 0; loop < loops; loop++) {

Error: CLANG_WARNING: [#def69]
liburing-2.6-build/liburing-2.6/test/buf-ring.c:349:10: warning[unix.Malloc]: Potential leak of memory pointed to by 'buffers'
#  347|   	read_fd = open("/dev/zero", O_RDONLY);
#  348|   	if (read_fd < 0)
#  349|-> 		return 1;
#  350|   
#  351|   	for (loop = 0; loop < loops; loop++) {

Error: CPPCHECK_WARNING: [#def70]
liburing-2.6-build/liburing-2.6/test/ce593a6c480a.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def71]
liburing-2.6-build/liburing-2.6/test/close-opath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def72]
liburing-2.6-build/liburing-2.6/test/connect-rep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def73]
liburing-2.6-build/liburing-2.6/test/connect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def74]
liburing-2.6-build/liburing-2.6/test/coredump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def75]
liburing-2.6-build/liburing-2.6/test/coredump.c:40: error[nullPointer]: Null pointer dereference: ptr
#   38|   
#   39|   	io_uring_submit(&ring);
#   40|-> 	*ptr = 0;
#   41|   	exit(0);
#   42|   }

Error: CLANG_WARNING: [#def76]
liburing-2.6-build/liburing-2.6/test/coredump.c:40:7: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'ptr')
#   38|   
#   39|   	io_uring_submit(&ring);
#   40|-> 	*ptr = 0;
#   41|   	exit(0);
#   42|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
liburing-2.6-build/liburing-2.6/test/coredump.c: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/coredump.c:40:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/coredump.c: scope_hint: In function ‘test’
#   38|   
#   39|   	io_uring_submit(&ring);
#   40|-> 	*ptr = 0;
#   41|   	exit(0);
#   42|   }

Error: CPPCHECK_WARNING: [#def78]
liburing-2.6-build/liburing-2.6/test/cq-full.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def79]
liburing-2.6-build/liburing-2.6/test/cq-overflow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def80]
liburing-2.6-build/liburing-2.6/test/cq-peek-batch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def81]
liburing-2.6-build/liburing-2.6/test/cq-ready.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def82]
liburing-2.6-build/liburing-2.6/test/cq-size.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def83]
liburing-2.6-build/liburing-2.6/test/d4ae271dfaae.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def84]
liburing-2.6-build/liburing-2.6/test/d77a67ed5f27.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479): [#def85]
liburing-2.6-build/liburing-2.6/test/d77a67ed5f27.c: scope_hint: In function ‘sig_alrm’
liburing-2.6-build/liburing-2.6/test/d77a67ed5f27.c:13:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.6-build/liburing-2.6/test/d77a67ed5f27.c:13:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
#   11|   {
#   12|   	fprintf(stderr, "Timed out!\n");
#   13|-> 	exit(1);
#   14|   }
#   15|   

Error: CPPCHECK_WARNING: [#def86]
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c: scope_hint: In function ‘test_exec’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:63:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:180:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:156:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:61:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:157:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:61:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:159:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:61:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:161:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:61:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:61:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:61:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:162:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:180:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:61:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/defer-taskrun.c:180:9: note: in expansion of macro ‘CHECK’
#   61|   	if (!(x)) {								\
#   62|   		fprintf(stderr, "%s:%d %s failed\n", __FILE__, __LINE__, #x);	\
#   63|-> 		return -1;							\
#   64|   	}									\
#   65|   } while (0)

Error: CPPCHECK_WARNING: [#def88]
liburing-2.6-build/liburing-2.6/test/defer-tw-timeout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def89]
liburing-2.6-build/liburing-2.6/test/defer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def90]
liburing-2.6-build/liburing-2.6/test/double-poll-crash.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def91]
liburing-2.6-build/liburing-2.6/test/double-poll-crash.c:139:3: warning[deadcode.DeadStores]: Value stored to 'res' is never read
#  137|     *(uint32_t*)0x200004a0 = 0;
#  138|     *(uint32_t*)0x200004a4 = 0;
#  139|->   res = -1;
#  140|     res = syz_io_uring_setup(0x6ad4, 0x20000480, 0x20ee7000, 0x20ffb000,
#  141|                              0x20000180, 0x20000040);

Error: CLANG_WARNING: [#def92]
liburing-2.6-build/liburing-2.6/test/double-poll-crash.c:147:3: warning[deadcode.DeadStores]: Value stored to 'res' is never read
#  145|       r[2] = *(uint64_t*)0x20000040;
#  146|     }
#  147|->   res = -1;
#  148|     res = syz_open_dev(0xc, 4, 0x15);
#  149|     if (res != -1)

Error: CPPCHECK_WARNING: [#def93]
liburing-2.6-build/liburing-2.6/test/drop-submit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def94]
liburing-2.6-build/liburing-2.6/test/eeed8b54e0df.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def95]
liburing-2.6-build/liburing-2.6/test/empty-eownerdead.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def96]
liburing-2.6-build/liburing-2.6/test/eploop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
liburing-2.6-build/liburing-2.6/test/eploop.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/eploop.c:54:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/eploop.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/eploop.c: scope_hint: In function ‘main’
#   52|   
#   53|   	sqe = io_uring_get_sqe(&ring);
#   54|-> 	sqe->user_data = 2;
#   55|   	io_uring_prep_nop(sqe);
#   56|   	io_uring_submit(&ring);

Error: CPPCHECK_WARNING: [#def98]
liburing-2.6-build/liburing-2.6/test/eventfd-disable.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def99]
liburing-2.6-build/liburing-2.6/test/eventfd-reg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def100]
liburing-2.6-build/liburing-2.6/test/eventfd-ring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def101]
liburing-2.6-build/liburing-2.6/test/eventfd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def102]
liburing-2.6-build/liburing-2.6/test/evloop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
liburing-2.6-build/liburing-2.6/test/evloop.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/evloop.c:53:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/evloop.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/evloop.c: scope_hint: In function ‘main’
#   51|   
#   52|   	sqe = io_uring_get_sqe(&ring);
#   53|-> 	sqe->user_data = 2;
#   54|   	io_uring_prep_nop(sqe);
#   55|   	io_uring_submit(&ring);

Error: CPPCHECK_WARNING: [#def104]
liburing-2.6-build/liburing-2.6/test/exit-no-cleanup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def105]
liburing-2.6-build/liburing-2.6/test/fadvise.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def106]
liburing-2.6-build/liburing-2.6/test/fallocate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def107]
liburing-2.6-build/liburing-2.6/test/fc2a85cb02ef.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def108]
liburing-2.6-build/liburing-2.6/test/fc2a85cb02ef.c: scope_hint: In function ‘inject_fault’
liburing-2.6-build/liburing-2.6/test/fc2a85cb02ef.c:51:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/thread-self/fail-nth", 2)’
#   49|       exit(1);
#   50|     char buf[16];
#   51|->   sprintf(buf, "%d", nth + 1);
#   52|     if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf))
#   53|       exit(1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def109]
liburing-2.6-build/liburing-2.6/test/fc2a85cb02ef.c:54:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<return-value>’
#   52|     if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf))
#   53|       exit(1);
#   54|->   return fd;
#   55|   }
#   56|   

Error: CPPCHECK_WARNING: [#def110]
liburing-2.6-build/liburing-2.6/test/fd-install.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-910): [#def111]
liburing-2.6-build/liburing-2.6/test/fd-install.c: scope_hint: In function ‘test_working’
liburing-2.6-build/liburing-2.6/test/fd-install.c:227:15: warning[-Wanalyzer-fd-use-after-close]: ‘read’ on closed file descriptor ‘fds[0]’
#  225|   
#  226|   	/* normal read should fail */
#  227|-> 	ret = read(fds[0], buf, 1);
#  228|   	if (ret != -1) {
#  229|   		fprintf(stderr, "unexpected read ret %d\n", ret);

Error: CPPCHECK_WARNING: [#def112]
liburing-2.6-build/liburing-2.6/test/fd-pass.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def113]
liburing-2.6-build/liburing-2.6/test/fd-pass.c:44:14: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#   42|   
#   43|   	for (i = 0; i < FSIZE; i++) {
#   44|-> 		if (buf[i] != PAT) {
#   45|   			fprintf(stderr, "got %x, wanted %x\n", buf[i], PAT);
#   46|   			return 1;

Error: CLANG_WARNING: [#def114]
liburing-2.6-build/liburing-2.6/test/fd-pass.c:208:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  206|   	if (ret == T_EXIT_FAIL) {
#  207|   		fprintf(stderr, "test failed 0 1\n");
#  208|-> 		ret = T_EXIT_FAIL;
#  209|   	}
#  210|   

Error: CLANG_WARNING: [#def115]
liburing-2.6-build/liburing-2.6/test/fd-pass.c:214:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  212|   	if (ret == T_EXIT_FAIL) {
#  213|   		fprintf(stderr, "test failed 0 2\n");
#  214|-> 		ret = T_EXIT_FAIL;
#  215|   	}
#  216|   

Error: CLANG_WARNING: [#def116]
liburing-2.6-build/liburing-2.6/test/fd-pass.c:220:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  218|   	if (ret == T_EXIT_FAIL) {
#  219|   		fprintf(stderr, "test failed 1 1\n");
#  220|-> 		ret = T_EXIT_FAIL;
#  221|   	}
#  222|   

Error: CLANG_WARNING: [#def117]
liburing-2.6-build/liburing-2.6/test/fd-pass.c:226:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  224|   	if (ret == T_EXIT_FAIL) {
#  225|   		fprintf(stderr, "test failed 1 0\n");
#  226|-> 		ret = T_EXIT_FAIL;
#  227|   	}
#  228|   

Error: CPPCHECK_WARNING: [#def118]
liburing-2.6-build/liburing-2.6/test/file-register.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def119]
liburing-2.6-build/liburing-2.6/test/file-register.c:61:13: warning[core.NullDereference]: Array access (from variable 'files') results in a null pointer dereference
#   59|   	if (extra) {
#   60|   		for (i = nr_files; i < nr_files + extra; i++)
#   61|-> 			files[i] = -1;
#   62|   	}
#   63|   

Error: CPPCHECK_WARNING (CWE-457): [#def120]
liburing-2.6-build/liburing-2.6/test/file-register.c:714: error[uninitvar]: Uninitialized variable: buffer
#  712|   		return -1;
#  713|   	}
#  714|-> 	io_uring_prep_write(sqe, 1, buffer, sizeof(buffer), 0);
#  715|   	sqe->flags |= IOSQE_FIXED_FILE;
#  716|   	sqe->user_data = 2;

Error: CPPCHECK_WARNING: [#def121]
liburing-2.6-build/liburing-2.6/test/file-update.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def122]
liburing-2.6-build/liburing-2.6/test/file-verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def123]
liburing-2.6-build/liburing-2.6/test/file-verify.c:394:2: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  392|   	}
#  393|   
#  394|-> 	i = 0;
#  395|   	left = FSIZE;
#  396|   	off = 0;

Error: CLANG_WARNING: [#def124]
liburing-2.6-build/liburing-2.6/test/file-verify.c:519:4: warning[deadcode.DeadStores]: Value stored to 'this' is never read
#  517|   
#  518|   		if (this > 4096)
#  519|-> 			this = 4096;
#  520|   		ptr = buf;
#  521|   		for (i = 0; i < u_in_buf; i++) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
liburing-2.6-build/liburing-2.6/test/file-verify.c: scope_hint: In function ‘fill_pattern’
liburing-2.6-build/liburing-2.6/test/file-verify.c:526:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 1)’
#  524|   			ptr++;
#  525|   		}
#  526|-> 		if (write(fd, buf, 4096) != 4096)
#  527|   			return 1;
#  528|   		left -= 4096;

Error: CPPCHECK_WARNING: [#def126]
liburing-2.6-build/liburing-2.6/test/files-exit-hang-poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479): [#def127]
liburing-2.6-build/liburing-2.6/test/files-exit-hang-poll.c: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/test/files-exit-hang-poll.c:56:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/test/files-exit-hang-poll.c: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/test/files-exit-hang-poll.c: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/test/files-exit-hang-poll.c:56:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
#   54|   static void alarm_sig(int sig)
#   55|   {
#   56|-> 	exit(0);
#   57|   }
#   58|   

Error: CPPCHECK_WARNING: [#def128]
liburing-2.6-build/liburing-2.6/test/files-exit-hang-timeout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-479): [#def129]
liburing-2.6-build/liburing-2.6/test/files-exit-hang-timeout.c: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/test/files-exit-hang-timeout.c:64:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/test/files-exit-hang-timeout.c: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/test/files-exit-hang-timeout.c: scope_hint: In function ‘alarm_sig’
liburing-2.6-build/liburing-2.6/test/files-exit-hang-timeout.c:64:9: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’
#   62|   static void alarm_sig(int sig)
#   63|   {
#   64|-> 	exit(0);
#   65|   }
#   66|   

Error: CPPCHECK_WARNING: [#def130]
liburing-2.6-build/liburing-2.6/test/fixed-buf-iter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def131]
liburing-2.6-build/liburing-2.6/test/fixed-buf-iter.c: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/fixed-buf-iter.c:42:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(4096)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#   40|   		iov[i].iov_base = malloc(BUF_SIZE);
#   41|   		iov[i].iov_len = BUF_SIZE;
#   42|-> 		memset(iov[i].iov_base, 0, BUF_SIZE);
#   43|   	}
#   44|   

Error: CPPCHECK_WARNING: [#def132]
liburing-2.6-build/liburing-2.6/test/fixed-buf-merge.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def133]
liburing-2.6-build/liburing-2.6/test/fixed-link.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def134]
liburing-2.6-build/liburing-2.6/test/fixed-link.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/fixed-link.c:42:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/zero", 0)’
#   40|   
#   41|   	ret = io_uring_register_buffers(&ring, iovecs, IOVECS_LEN);
#   42|-> 	if (ret) {
#   43|   		fprintf(stderr, "Failed to register buffers\n");
#   44|   		return T_EXIT_FAIL;

Error: CPPCHECK_WARNING: [#def135]
liburing-2.6-build/liburing-2.6/test/fixed-reuse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def136]
liburing-2.6-build/liburing-2.6/test/fixed-reuse.c:109:14: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
#  107|   
#  108|   	for (i = 0; i < sizeof(buf); i++) {
#  109|-> 		if (buf[i] == PAT2)
#  110|   			continue;
#  111|   		fprintf(stderr, "Bad pattern %x at %d\n", buf[i], i);

Error: CPPCHECK_WARNING: [#def137]
liburing-2.6-build/liburing-2.6/test/fpos.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def138]
liburing-2.6-build/liburing-2.6/test/fsnotify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def139]
liburing-2.6-build/liburing-2.6/test/fsync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def140]
liburing-2.6-build/liburing-2.6/test/futex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def141]
liburing-2.6-build/liburing-2.6/test/futex.c:360:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  358|   	io_uring_submit(&ring);
#  359|   
#  360|-> 	ret = io_uring_wait_cqe(&ring, &cqe);
#  361|   
#  362|   	/*

Error: CLANG_WARNING: [#def142]
liburing-2.6-build/liburing-2.6/test/futex.c:410:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  408|   	io_uring_submit(&ring);
#  409|   
#  410|-> 	ret = io_uring_wait_cqe(&ring, &cqe);
#  411|   
#  412|   	/*

Error: CLANG_WARNING: [#def143]
liburing-2.6-build/liburing-2.6/test/futex.c:428:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  426|   	io_uring_submit(&ring);
#  427|   
#  428|-> 	ret = io_uring_wait_cqe(&ring, &cqe);
#  429|   
#  430|   	/*

Error: CLANG_WARNING: [#def144]
liburing-2.6-build/liburing-2.6/test/futex.c:450:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  448|   	io_uring_submit(&ring);
#  449|   
#  450|-> 	ret = io_uring_wait_cqe(&ring, &cqe);
#  451|   
#  452|   	/*

Error: CPPCHECK_WARNING: [#def145]
liburing-2.6-build/liburing-2.6/test/hardlink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def146]
liburing-2.6-build/liburing-2.6/test/helpers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
liburing-2.6-build/liburing-2.6/test/helpers.c: scope_hint: In function ‘__t_create_file’
liburing-2.6-build/liburing-2.6/test/helpers.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t_malloc(size)’
liburing-2.6-build/liburing-2.6/test/helpers.c:6: included_from: Included from here.
#   82|   
#   83|   	buf = t_malloc(size);
#   84|-> 	memset(buf, pattern, size);
#   85|   
#   86|   	fd = open(file, O_WRONLY | O_CREAT, 0644);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def148]
liburing-2.6-build/liburing-2.6/test/helpers.c: scope_hint: In function ‘t_create_socket_pair’
liburing-2.6-build/liburing-2.6/test/helpers.c:186:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#  184|   	if (fd[0] < 0)
#  185|   		return errno;
#  186|-> 	fd[1] = socket(AF_INET, type, 0);
#  187|   	if (fd[1] < 0) {
#  188|   		ret = errno;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def149]
liburing-2.6-build/liburing-2.6/test/helpers.c:210:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*fd’
#  208|   	}
#  209|   
#  210|-> 	if (stream && listen(fd[0], 16)) {
#  211|   		fprintf(stderr, "listen failed\n");
#  212|   		goto errno_cleanup;

Error: CPPCHECK_WARNING: [#def150]
liburing-2.6-build/liburing-2.6/test/io-cancel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
liburing-2.6-build/liburing-2.6/test/io-cancel.c:218:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_dont_cancel_another_ring’
liburing-2.6-build/liburing-2.6/test/io-cancel.c: scope_hint: In function ‘test_dont_cancel_another_ring’
#  216|   	if (ret) {
#  217|   		fprintf(stderr, "ring create failed: %d\n", ret);
#  218|-> 		return 1;
#  219|   	}
#  220|   	ret = io_uring_queue_init(8, &ring2, 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def152]
liburing-2.6-build/liburing-2.6/test/io-cancel.c: scope_hint: In function ‘test_dont_cancel_another_ring’
liburing-2.6-build/liburing-2.6/test/io-cancel.c:218:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_dont_cancel_another_ring’
liburing-2.6-build/liburing-2.6/test/io-cancel.c: scope_hint: In function ‘test_dont_cancel_another_ring’
#  216|   	if (ret) {
#  217|   		fprintf(stderr, "ring create failed: %d\n", ret);
#  218|-> 		return 1;
#  219|   	}
#  220|   	ret = io_uring_queue_init(8, &ring2, 0);

Error: CLANG_WARNING: [#def153]
liburing-2.6-build/liburing-2.6/test/io-cancel.c:502:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  500|   	/* close the write end, so if ring is cancelled properly read() fails*/
#  501|   	close(fds[1]);
#  502|-> 	ret = read(fds[0], buffer, 10);
#  503|   	close(fds[0]);
#  504|   	return 0;

Error: CPPCHECK_WARNING: [#def154]
liburing-2.6-build/liburing-2.6/test/io_uring_enter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def155]
liburing-2.6-build/liburing-2.6/test/io_uring_enter.c:252:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  250|   	io_uring_smp_store_release(sq->ktail, ktail);
#  251|   
#  252|-> 	ret = io_uring_enter(ring.ring_fd, 1, 0, 0, NULL);
#  253|   	/* now check to see if our sqe was dropped */
#  254|   	if (*sq->kdropped == dropped) {

Error: CPPCHECK_WARNING: [#def156]
liburing-2.6-build/liburing-2.6/test/io_uring_passthrough.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def157]
liburing-2.6-build/liburing-2.6/test/io_uring_register.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def158]
liburing-2.6-build/liburing-2.6/test/io_uring_register.c: scope_hint: In function ‘test_max_fds’
liburing-2.6-build/liburing-2.6/test/io_uring_register.c:159:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
#  157|   	fds = mmap(fd_as, 128*1024*1024, PROT_READ|PROT_WRITE,
#  158|   		   MAP_SHARED|MAP_FIXED, fdtable_fd, 0);
#  159|-> 	if (fds == MAP_FAILED) {
#  160|   		perror("mmap fdtable");
#  161|   		exit(1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
liburing-2.6-build/liburing-2.6/test/io_uring_register.c:167:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
#  165|   	nr_fds = 128*1024*1024 / sizeof(int);
#  166|   	for (i = 0; i < nr_fds; i++)
#  167|-> 		fds[i] = io_fd;
#  168|   
#  169|   	/* map the file through the rest of the address space */

Error: COMPILER_WARNING: [#def160]
liburing-2.6-build/liburing-2.6/test/io_uring_register.c:391:9: warning[-Wstringop-overflow=]: ‘memset’ writing 63 bytes into a region of size 0 overflows the destination
cc1: note: destination object is likely at address zero
#  389|   
#  390|   	sqe = io_uring_get_sqe(ring);
#  391|-> 	memset(sqe, 0, sizeof(*sqe));
#  392|   	sqe->opcode = IORING_OP_POLL_ADD;
#  393|   	if (fixed)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
liburing-2.6-build/liburing-2.6/test/io_uring_register.c: scope_hint: In function ‘ioring_poll’
liburing-2.6-build/liburing-2.6/test/io_uring_register.c:392:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘ioring_poll’
liburing-2.6-build/liburing-2.6/test/io_uring_register.c: scope_hint: In function ‘ioring_poll’
#  390|   	sqe = io_uring_get_sqe(ring);
#  391|   	memset(sqe, 0, sizeof(*sqe));
#  392|-> 	sqe->opcode = IORING_OP_POLL_ADD;
#  393|   	if (fixed)
#  394|   		sqe->flags = IOSQE_FIXED_FILE;

Error: CPPCHECK_WARNING: [#def162]
liburing-2.6-build/liburing-2.6/test/io_uring_setup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def163]
liburing-2.6-build/liburing-2.6/test/iopoll-leak.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def164]
liburing-2.6-build/liburing-2.6/test/iopoll-overflow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def165]
liburing-2.6-build/liburing-2.6/test/iopoll-overflow.c:51:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#   49|   	sleep(1);
#   50|   
#   51|-> 	ret = __sys_io_uring_enter(ring->ring_fd, 0, BUFFERS * 8,
#   52|   					IORING_ENTER_GETEVENTS, NULL);
#   53|   

Error: CPPCHECK_WARNING: [#def166]
liburing-2.6-build/liburing-2.6/test/iopoll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def167]
liburing-2.6-build/liburing-2.6/test/iopoll.c:46:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#   44|   
#   45|   	for (i = 0; i < BUFFERS; i++) {
#   46|-> 		ret = io_uring_wait_cqe(ring, &cqe);
#   47|   		if (cqe->res < 0) {
#   48|   			fprintf(stderr, "cqe->res=%d\n", cqe->res);

Error: CLANG_WARNING: [#def168]
liburing-2.6-build/liburing-2.6/test/iopoll.c:103:2: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
#  101|   	}
#  102|   
#  103|-> 	offset = 0;
#  104|   	for (i = 0; i < BUFFERS; i++) {
#  105|   		sqe = io_uring_get_sqe(ring);

Error: CLANG_WARNING: [#def169]
liburing-2.6-build/liburing-2.6/test/iopoll.c:264:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  262|   	}
#  263|   
#  264|-> 	ret = T_EXIT_PASS;
#  265|   	i = 0;
#  266|   	do {

Error: CPPCHECK_WARNING: [#def170]
liburing-2.6-build/liburing-2.6/test/lfs-openat-write.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def171]
liburing-2.6-build/liburing-2.6/test/lfs-openat-write.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/lfs-openat-write.c:110:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/tmp", 65536)’
#  108|   
#  109|   	ret = io_uring_queue_init(RSIZE, &ring, 0);
#  110|-> 	if (ret < 0)
#  111|   		DIE("failed to init io_uring: %s\n", strerror(-ret));
#  112|   

Error: CPPCHECK_WARNING: [#def172]
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def173]
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c:93:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
#   91|   	if (pipe(fds)) {
#   92|   		perror("pipe");
#   93|-> 		return 1;
#   94|   	}
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def174]
liburing-2.6-build/liburing-2.6/test/lfs-openat.c:93:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_linked_files’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘test_linked_files’
#   91|   	if (pipe(fds)) {
#   92|   		perror("pipe");
#   93|-> 		return 1;
#   94|   	}
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
liburing-2.6-build/liburing-2.6/test/lfs-openat.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/lfs-openat.c:227:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/tmp", 2097152)’
#  225|   
#  226|   	ret = io_uring_queue_init(RSIZE, &ring, 0);
#  227|-> 	if (ret < 0)
#  228|   		DIE("failed to init io_uring: %s\n", strerror(-ret));
#  229|   

Error: CPPCHECK_WARNING: [#def176]
liburing-2.6-build/liburing-2.6/test/link-timeout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def177]
liburing-2.6-build/liburing-2.6/test/link-timeout.c:551:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_timeout_link_chain1’
liburing-2.6-build/liburing-2.6/test/link-timeout.c: scope_hint: In function ‘test_timeout_link_chain1’
#  549|   	if (pipe(fds)) {
#  550|   		perror("pipe");
#  551|-> 		return 1;
#  552|   	}
#  553|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def178]
liburing-2.6-build/liburing-2.6/test/link-timeout.c: scope_hint: In function ‘test_timeout_link_chain1’
liburing-2.6-build/liburing-2.6/test/link-timeout.c:551:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_timeout_link_chain1’
liburing-2.6-build/liburing-2.6/test/link-timeout.c: scope_hint: In function ‘test_timeout_link_chain1’
#  549|   	if (pipe(fds)) {
#  550|   		perror("pipe");
#  551|-> 		return 1;
#  552|   	}
#  553|   

Error: CPPCHECK_WARNING: [#def179]
liburing-2.6-build/liburing-2.6/test/link.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def180]
liburing-2.6-build/liburing-2.6/test/link_drain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def181]
liburing-2.6-build/liburing-2.6/test/madvise.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def182]
liburing-2.6-build/liburing-2.6/test/mkdir.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def183]
liburing-2.6-build/liburing-2.6/test/msg-ring-fd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
liburing-2.6-build/liburing-2.6/test/msg-ring-fd.c: scope_hint: In function ‘test_local’
liburing-2.6-build/liburing-2.6/test/msg-ring-fd.c:167:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
#  165|   	if (ret) {
#  166|   		if (ret == -EBADF || ret == -EINVAL)
#  167|-> 			return 0;
#  168|   		fprintf(stderr, "register files failed: %d\n", ret);
#  169|   		return 1;

Error: CPPCHECK_WARNING: [#def185]
liburing-2.6-build/liburing-2.6/test/msg-ring-flags.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def186]
liburing-2.6-build/liburing-2.6/test/msg-ring-overflow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def187]
liburing-2.6-build/liburing-2.6/test/msg-ring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def188]
liburing-2.6-build/liburing-2.6/test/multicqes_drain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
liburing-2.6-build/liburing-2.6/test/multicqes_drain.c: scope_hint: In function ‘test_simple_drain’
liburing-2.6-build/liburing-2.6/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
#  286|   	if (pipe(pipe1) != 0 || pipe(pipe2) != 0) {
#  287|   		perror("pipe");
#  288|-> 		return 1;
#  289|   	}
#  290|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
liburing-2.6-build/liburing-2.6/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[i]’
#  286|   	if (pipe(pipe1) != 0 || pipe(pipe2) != 0) {
#  287|   		perror("pipe");
#  288|-> 		return 1;
#  289|   	}
#  290|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
liburing-2.6-build/liburing-2.6/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe2[1]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_simple_drain’
liburing-2.6-build/liburing-2.6/test/multicqes_drain.c: scope_hint: In function ‘test_simple_drain’
#  286|   	if (pipe(pipe1) != 0 || pipe(pipe2) != 0) {
#  287|   		perror("pipe");
#  288|-> 		return 1;
#  289|   	}
#  290|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
liburing-2.6-build/liburing-2.6/test/multicqes_drain.c:288:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe2[i]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘test_simple_drain’
liburing-2.6-build/liburing-2.6/test/multicqes_drain.c: scope_hint: In function ‘test_simple_drain’
#  286|   	if (pipe(pipe1) != 0 || pipe(pipe2) != 0) {
#  287|   		perror("pipe");
#  288|-> 		return 1;
#  289|   	}
#  290|   

Error: CPPCHECK_WARNING: [#def193]
liburing-2.6-build/liburing-2.6/test/no-mmap-inval.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def194]
liburing-2.6-build/liburing-2.6/test/nolibc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def195]
liburing-2.6-build/liburing-2.6/test/nop-all-sizes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def196]
liburing-2.6-build/liburing-2.6/test/nop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def197]
liburing-2.6-build/liburing-2.6/test/open-close.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def198]
liburing-2.6-build/liburing-2.6/test/open-direct-link.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def199]
liburing-2.6-build/liburing-2.6/test/open-direct-pick.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def200]
liburing-2.6-build/liburing-2.6/test/openat2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def201]
liburing-2.6-build/liburing-2.6/test/personality.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def202]
liburing-2.6-build/liburing-2.6/test/pipe-bug.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def203]
liburing-2.6-build/liburing-2.6/test/pipe-bug.c: scope_hint: In function ‘pipe_bug’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:21:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:37:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:19:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:19:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:37:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:37:9: note: in expansion of macro ‘CHECK’
#   19|   	if (!(x)) {								\
#   20|   		fprintf(stderr, "%s:%d %s failed\n", __FILE__, __LINE__, #x);	\
#   21|-> 		return -1;							\
#   22|   	}									\
#   23|   } while (0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def204]
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:21:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[i]’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:37:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:19:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:19:15: note: in definition of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:37:9: note: in expansion of macro ‘CHECK’
liburing-2.6-build/liburing-2.6/test/pipe-bug.c:37:9: note: in expansion of macro ‘CHECK’
#   19|   	if (!(x)) {								\
#   20|   		fprintf(stderr, "%s:%d %s failed\n", __FILE__, __LINE__, #x);	\
#   21|-> 		return -1;							\
#   22|   	}									\
#   23|   } while (0)

Error: CPPCHECK_WARNING: [#def205]
liburing-2.6-build/liburing-2.6/test/pipe-eof.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def206]
liburing-2.6-build/liburing-2.6/test/pipe-reuse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def207]
liburing-2.6-build/liburing-2.6/test/poll-cancel-all.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def208]
liburing-2.6-build/liburing-2.6/test/poll-cancel-ton.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def209]
liburing-2.6-build/liburing-2.6/test/poll-cancel-ton.c:67:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#   65|   		}
#   66|   		nr -= batch;
#   67|-> 		ret = reap_events(ring, 2 * batch, 0);
#   68|   	}
#   69|   	return 0;

Error: CPPCHECK_WARNING: [#def210]
liburing-2.6-build/liburing-2.6/test/poll-cancel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def211]
liburing-2.6-build/liburing-2.6/test/poll-cancel.c: scope_hint: In function ‘test_poll_cancel’
liburing-2.6-build/liburing-2.6/test/poll-cancel.c:41:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
#   39|   	if (pipe(pipe1) != 0) {
#   40|   		perror("pipe");
#   41|-> 		return 1;
#   42|   	}
#   43|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def212]
liburing-2.6-build/liburing-2.6/test/poll-cancel.c:41:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
#   39|   	if (pipe(pipe1) != 0) {
#   40|   		perror("pipe");
#   41|-> 		return 1;
#   42|   	}
#   43|   

Error: CPPCHECK_WARNING: [#def213]
liburing-2.6-build/liburing-2.6/test/poll-link.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def214]
liburing-2.6-build/liburing-2.6/test/poll-many.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def215]
liburing-2.6-build/liburing-2.6/test/poll-mshot-overflow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def216]
liburing-2.6-build/liburing-2.6/test/poll-mshot-overflow.c:151:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
#  149|   	if (pipe(fds) != 0) {
#  150|   		perror("pipe");
#  151|-> 		return -1;
#  152|   	}
#  153|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def217]
liburing-2.6-build/liburing-2.6/test/poll-mshot-overflow.c: scope_hint: In function ‘test_downgrade’
liburing-2.6-build/liburing-2.6/test/poll-mshot-overflow.c:151:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
#  149|   	if (pipe(fds) != 0) {
#  150|   		perror("pipe");
#  151|-> 		return -1;
#  152|   	}
#  153|   

Error: CPPCHECK_WARNING: [#def218]
liburing-2.6-build/liburing-2.6/test/poll-mshot-update.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def219]
liburing-2.6-build/liburing-2.6/test/poll-mshot-update.c: scope_hint: In function ‘run’
liburing-2.6-build/liburing-2.6/test/poll-mshot-update.c:224:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#  222|   
#  223|   	for (i = 0; i < NFILES; i++) {
#  224|-> 		if (pipe(p[i].fd) < 0) {
#  225|   			perror("pipe");
#  226|   			return 1;

Error: CPPCHECK_WARNING: [#def220]
liburing-2.6-build/liburing-2.6/test/poll-race-mshot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def221]
liburing-2.6-build/liburing-2.6/test/poll-race.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def222]
liburing-2.6-build/liburing-2.6/test/poll-ring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def223]
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def224]
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c: scope_hint: In function ‘do_pipe_pollin_test’
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c:99:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
#   97|   	if (pipe(pipe1) < 0) {
#   98|   		perror("pipe");
#   99|-> 		return 1;
#  100|   	}
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def225]
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c: scope_hint: In function ‘do_pipe_pollout_test’
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c:138:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
#  136|   	if (pipe(pipe1) < 0) {
#  137|   		perror("pipe");
#  138|-> 		return 1;
#  139|   	}
#  140|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def226]
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c:245:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
liburing-2.6-build/liburing-2.6/src/include/liburing.h: scope_hint: In function ‘do_test_epoll’
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c: scope_hint: In function ‘do_test_epoll’
#  243|   	if (fd < 0) {
#  244|   		perror("epoll_create");
#  245|-> 		return 1;
#  246|   	}
#  247|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def227]
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c: scope_hint: In function ‘do_test_epoll’
liburing-2.6-build/liburing-2.6/test/poll-v-poll.c:245:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
#  243|   	if (fd < 0) {
#  244|   		perror("epoll_create");
#  245|-> 		return 1;
#  246|   	}
#  247|   

Error: CPPCHECK_WARNING: [#def228]
liburing-2.6-build/liburing-2.6/test/poll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def229]
liburing-2.6-build/liburing-2.6/test/poll.c:45:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
#   43|   	if (pipe(pipe1) != 0) {
#   44|   		perror("pipe");
#   45|-> 		return 1;
#   46|   	}
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def230]
liburing-2.6-build/liburing-2.6/test/poll.c: scope_hint: In function ‘test_basic’
liburing-2.6-build/liburing-2.6/test/poll.c:45:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
#   43|   	if (pipe(pipe1) != 0) {
#   44|   		perror("pipe");
#   45|-> 		return 1;
#   46|   	}
#   47|   

Error: CLANG_WARNING: [#def231]
liburing-2.6-build/liburing-2.6/test/poll.c:219:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  217|   	assert(ret == 1);
#  218|   
#  219|-> 	ret = io_uring_wait_cqe(&ring, &cqe);
#  220|   	io_uring_cqe_seen(&ring, cqe);
#  221|   

Error: CPPCHECK_WARNING: [#def232]
liburing-2.6-build/liburing-2.6/test/probe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def233]
liburing-2.6-build/liburing-2.6/test/read-before-exit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def234]
liburing-2.6-build/liburing-2.6/test/read-mshot-empty.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def235]
liburing-2.6-build/liburing-2.6/test/read-mshot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def236]
liburing-2.6-build/liburing-2.6/test/read-mshot.c:156:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
#  154|   	if (ret) {
#  155|   		fprintf(stderr, "ring setup failed: %d\n", ret);
#  156|-> 		return 1;
#  157|   	}
#  158|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def237]
liburing-2.6-build/liburing-2.6/test/read-mshot.c: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/read-mshot.c:156:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
#  154|   	if (ret) {
#  155|   		fprintf(stderr, "ring setup failed: %d\n", ret);
#  156|-> 		return 1;
#  157|   	}
#  158|   

Error: CPPCHECK_WARNING: [#def238]
liburing-2.6-build/liburing-2.6/test/read-write.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def239]
liburing-2.6-build/liburing-2.6/test/read-write.c:419:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  417|   
#  418|   	for (i = 0; i < BUFFERS; i++) {
#  419|-> 		ret = io_uring_wait_cqe(&ring, &cqe);
#  420|   		if (cqe->res < 0) {
#  421|   			fprintf(stderr, "cqe->res=%d\n", cqe->res);

Error: CPPCHECK_WARNING: [#def240]
liburing-2.6-build/liburing-2.6/test/recv-msgall-stream.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def241]
liburing-2.6-build/liburing-2.6/test/recv-msgall-stream.c:225:15: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#  223|   
#  224|   		for (i = 0; i < MAX_MSG; i++) {
#  225|-> 			if (buf[i] != i) {
#  226|   				fprintf(stderr, "found %d at %d\n", buf[i], i);
#  227|   				ret = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
liburing-2.6-build/liburing-2.6/test/recv-msgall-stream.c: scope_hint: In function ‘do_send’
liburing-2.6-build/liburing-2.6/test/recv-msgall-stream.c:273:24: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
#  271|   	if (ret) {
#  272|   		fprintf(stderr, "queue init failed: %d\n", ret);
#  273|-> 		return 1;
#  274|   	}
#  275|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
liburing-2.6-build/liburing-2.6/test/recv-msgall-stream.c:278:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
#  276|   	buf = malloc(MAX_MSG * sizeof(int));
#  277|   	for (i = 0; i < MAX_MSG; i++)
#  278|-> 		buf[i] = i;
#  279|   
#  280|   	sockfd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP);

Error: CLANG_WARNING: [#def244]
liburing-2.6-build/liburing-2.6/test/recv-msgall-stream.c:316:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  314|   
#  315|   	for (i = 0; i < 2; i++) {
#  316|-> 		ret = io_uring_wait_cqe(&ring, &cqe);
#  317|   		if (cqe->res == -EINVAL) {
#  318|   			fprintf(stdout, "send not supported, skipping\n");

Error: CPPCHECK_WARNING: [#def245]
liburing-2.6-build/liburing-2.6/test/recv-msgall.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
liburing-2.6-build/liburing-2.6/test/recv-msgall.c: scope_hint: In function ‘do_send’
liburing-2.6-build/liburing-2.6/test/recv-msgall.c:159:24: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
#  157|   	if (ret) {
#  158|   		fprintf(stderr, "queue init failed: %d\n", ret);
#  159|-> 		return 1;
#  160|   	}
#  161|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def247]
liburing-2.6-build/liburing-2.6/test/recv-msgall.c:164:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
#  162|   	buf = malloc(MAX_MSG * sizeof(int));
#  163|   	for (i = 0; i < MAX_MSG; i++)
#  164|-> 		buf[i] = i;
#  165|   
#  166|   	memset(&saddr, 0, sizeof(saddr));

Error: CLANG_WARNING: [#def248]
liburing-2.6-build/liburing-2.6/test/recv-msgall.c:200:3: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  198|   
#  199|   	for (i = 0; i < 2; i++) {
#  200|-> 		ret = io_uring_wait_cqe(&ring, &cqe);
#  201|   		if (cqe->res == -EINVAL) {
#  202|   			fprintf(stdout, "send not supported, skipping\n");

Error: CPPCHECK_WARNING: [#def249]
liburing-2.6-build/liburing-2.6/test/recv-multishot.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def250]
liburing-2.6-build/liburing-2.6/test/reg-fd-only.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def251]
liburing-2.6-build/liburing-2.6/test/reg-hint.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def252]
liburing-2.6-build/liburing-2.6/test/reg-reg-ring.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def253]
liburing-2.6-build/liburing-2.6/test/regbuf-merge.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def254]
liburing-2.6-build/liburing-2.6/test/register-restrictions.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def255]
liburing-2.6-build/liburing-2.6/test/register-restrictions.c: scope_hint: In function ‘test_restrictions_sqe_op’
liburing-2.6-build/liburing-2.6/test/register-restrictions.c:39:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[0]’
#   37|   	if (pipe(pipe1) != 0) {
#   38|   		perror("pipe");
#   39|-> 		return TEST_FAILED;
#   40|   	}
#   41|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def256]
liburing-2.6-build/liburing-2.6/test/register-restrictions.c:39:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe1[1]’
#   37|   	if (pipe(pipe1) != 0) {
#   38|   		perror("pipe");
#   39|-> 		return TEST_FAILED;
#   40|   	}
#   41|   

Error: CPPCHECK_WARNING: [#def257]
liburing-2.6-build/liburing-2.6/test/rename.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def258]
liburing-2.6-build/liburing-2.6/test/ring-leak.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def259]
liburing-2.6-build/liburing-2.6/test/ring-leak.c: scope_hint: In function ‘test_scm_cycles’
liburing-2.6-build/liburing-2.6/test/ring-leak.c:165:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
#  163|   	if (socketpair(AF_UNIX, SOCK_DGRAM, 0, sp) != 0) {
#  164|   		perror("Failed to create Unix-domain socket pair\n");
#  165|-> 		return 1;
#  166|   	}
#  167|   	ret = io_uring_queue_init(8, &ring, 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def260]
liburing-2.6-build/liburing-2.6/test/ring-leak.c:165:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
#  163|   	if (socketpair(AF_UNIX, SOCK_DGRAM, 0, sp) != 0) {
#  164|   		perror("Failed to create Unix-domain socket pair\n");
#  165|-> 		return 1;
#  166|   	}
#  167|   	ret = io_uring_queue_init(8, &ring, 0);

Error: CPPCHECK_WARNING: [#def261]
liburing-2.6-build/liburing-2.6/test/ring-leak2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def262]
liburing-2.6-build/liburing-2.6/test/ring-leak2.c: scope_hint: In function ‘server_thread’
liburing-2.6-build/liburing-2.6/test/ring-leak2.c:115:13: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘sock_listen_fd’
#  113|   		exit(1);
#  114|   	}
#  115|-> 	if (listen(sock_listen_fd, 1) < 0) {
#  116|   		perror("Error listening on socket...\n");
#  117|   		exit(1);

Error: CPPCHECK_WARNING: [#def263]
liburing-2.6-build/liburing-2.6/test/ringbuf-read.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def264]
liburing-2.6-build/liburing-2.6/test/ringbuf-status.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def265]
liburing-2.6-build/liburing-2.6/test/ringbuf-status.c: scope_hint: In function ‘test’
liburing-2.6-build/liburing-2.6/test/ringbuf-status.c:97:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
#   95|   	if (ret) {
#   96|   		fprintf(stderr, "ring setup failed: %d\n", ret);
#   97|-> 		return 1;
#   98|   	}
#   99|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def266]
liburing-2.6-build/liburing-2.6/test/ringbuf-status.c:97:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
#   95|   	if (ret) {
#   96|   		fprintf(stderr, "ring setup failed: %d\n", ret);
#   97|-> 		return 1;
#   98|   	}
#   99|   

Error: CPPCHECK_WARNING: [#def267]
liburing-2.6-build/liburing-2.6/test/rsrc_tags.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def268]
liburing-2.6-build/liburing-2.6/test/rsrc_tags.c:110:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'tags'
#  108|   	ret = io_uring_queue_init(1, &ring, 0);
#  109|   	if (ret) {
#  110|-> 		printf("ring setup failed\n");
#  111|   		return 1;
#  112|   	}

Error: CPPCHECK_WARNING: [#def269]
liburing-2.6-build/liburing-2.6/test/rw_merge_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def270]
liburing-2.6-build/liburing-2.6/test/self.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def271]
liburing-2.6-build/liburing-2.6/test/send-zerocopy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def272]
liburing-2.6-build/liburing-2.6/test/send-zerocopy.c: scope_hint: In function ‘create_socketpair_ip’
liburing-2.6-build/liburing-2.6/test/send-zerocopy.c:292:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
liburing-2.6-build/liburing-2.6/test/send-zerocopy.c:5: included_from: Included from here.
#  290|   	if (sock < 0) {
#  291|   		perror("socket");
#  292|-> 		return 1;
#  293|   	}
#  294|   

Error: CPPCHECK_WARNING: [#def273]
liburing-2.6-build/liburing-2.6/test/send_recv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def274]
liburing-2.6-build/liburing-2.6/test/send_recv.c:214:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  212|   	}
#  213|   
#  214|-> 	ret = io_uring_wait_cqe(&ring, &cqe);
#  215|   	if (cqe->res == -EINVAL) {
#  216|   		fprintf(stdout, "send not supported, skipping\n");

Error: CPPCHECK_WARNING: [#def275]
liburing-2.6-build/liburing-2.6/test/send_recvmsg.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def276]
liburing-2.6-build/liburing-2.6/test/send_recvmsg.c:300:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  298|   	}
#  299|   
#  300|-> 	ret = io_uring_wait_cqe(&ring, &cqe);
#  301|   	if (cqe->res < 0) {
#  302|   		fprintf(stderr, "%s: failed cqe: %d\n", __FUNCTION__, cqe->res);

Error: CPPCHECK_WARNING: [#def277]
liburing-2.6-build/liburing-2.6/test/shared-wq.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def278]
liburing-2.6-build/liburing-2.6/test/short-read.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def279]
liburing-2.6-build/liburing-2.6/test/short-read.c:44:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".short-read", 0)’
#   42|   
#   43|   	ret = io_uring_queue_init(32, &ring, 0);
#   44|-> 	if (ret) {
#   45|   		fprintf(stderr, "queue init failed: %d\n", ret);
#   46|   		return ret;

Error: CPPCHECK_WARNING: [#def280]
liburing-2.6-build/liburing-2.6/test/shutdown.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def281]
liburing-2.6-build/liburing-2.6/test/shutdown.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/shutdown.c:52:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
#   50|   	ret = t_bind_ephemeral_port(recv_s0, &addr);
#   51|   	assert(!ret);
#   52|-> 	ret = listen(recv_s0, 128);
#   53|   	assert(ret != -1);
#   54|   

Error: CPPCHECK_WARNING: [#def282]
liburing-2.6-build/liburing-2.6/test/sigfd-deadlock.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def283]
liburing-2.6-build/liburing-2.6/test/single-issuer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def284]
liburing-2.6-build/liburing-2.6/test/skip-cqe.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def285]
liburing-2.6-build/liburing-2.6/test/socket-getsetsock-cmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def286]
liburing-2.6-build/liburing-2.6/test/socket-getsetsock-cmd.c:127:14: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
#  125|   	/* Make sure that io_uring operation returns the same value as the systemcall */
#  126|   	assert(ulen == slen);
#  127|-> 	assert(uval == sval);
#  128|   
#  129|   	return T_EXIT_PASS;

Error: CPPCHECK_WARNING: [#def287]
liburing-2.6-build/liburing-2.6/test/socket-io-cmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def288]
liburing-2.6-build/liburing-2.6/test/socket-rw-eagain.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def289]
liburing-2.6-build/liburing-2.6/test/socket-rw-eagain.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/socket-rw-eagain.c:47:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
liburing-2.6-build/liburing-2.6/test/socket-rw-eagain.c:9: included_from: Included from here.
#   45|   	ret = t_bind_ephemeral_port(recv_s0, &addr);
#   46|   	assert(!ret);
#   47|-> 	ret = listen(recv_s0, 128);
#   48|   	assert(ret != -1);
#   49|   

Error: CPPCHECK_WARNING: [#def290]
liburing-2.6-build/liburing-2.6/test/socket-rw-offset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def291]
liburing-2.6-build/liburing-2.6/test/socket-rw-offset.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/socket-rw-offset.c:49:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
liburing-2.6-build/liburing-2.6/test/socket-rw-offset.c:11: included_from: Included from here.
#   47|   	ret = t_bind_ephemeral_port(recv_s0, &addr);
#   48|   	assert(!ret);
#   49|-> 	ret = listen(recv_s0, 128);
#   50|   	assert(ret != -1);
#   51|   

Error: CPPCHECK_WARNING: [#def292]
liburing-2.6-build/liburing-2.6/test/socket-rw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING: [#def293]
liburing-2.6-build/liburing-2.6/test/socket-rw.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/socket-rw.c:49:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘recv_s0’
liburing-2.6-build/liburing-2.6/test/socket-rw.c:11: included_from: Included from here.
#   47|   	ret = t_bind_ephemeral_port(recv_s0, &addr);
#   48|   	assert(!ret);
#   49|-> 	ret = listen(recv_s0, 128);
#   50|   	assert(ret != -1);
#   51|   

Error: CPPCHECK_WARNING: [#def294]
liburing-2.6-build/liburing-2.6/test/socket.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def295]
liburing-2.6-build/liburing-2.6/test/socket.c:203:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  201|   	}
#  202|   
#  203|-> 	ret = io_uring_wait_cqe(ring, &cqe);
#  204|   	if (cqe->res == -EINVAL) {
#  205|   		fprintf(stdout, "send not supported, skipping\n");

Error: CLANG_WARNING: [#def296]
liburing-2.6-build/liburing-2.6/test/socket.c:322:2: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  320|   	}
#  321|   
#  322|-> 	ret = io_uring_wait_cqe(&ring, &cqe);
#  323|   	if (cqe->res == -EINVAL) {
#  324|   		fprintf(stdout, "send not supported, skipping\n");

Error: CPPCHECK_WARNING: [#def297]
liburing-2.6-build/liburing-2.6/test/splice.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
liburing-2.6-build/liburing-2.6/test/splice.c: scope_hint: In function ‘init_splice_ctx’
liburing-2.6-build/liburing-2.6/test/splice.c:111:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 0)’
#  109|   		return 1;
#  110|   
#  111|-> 	ret = read_buf(rnd_fd, ctx->buf_in, BUF_SIZE);
#  112|   	if (ret != 0)
#  113|   		return 1;

Error: CPPCHECK_WARNING: [#def299]
liburing-2.6-build/liburing-2.6/test/sq-full-cpp.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def300]
liburing-2.6-build/liburing-2.6/test/sq-full-cpp.cc:32:10: warning[deadcode.DeadStores]: Although the value stored to 'sqe' is used in the enclosing expression, the value is never actually read from 'sqe'
#   30|   
#   31|   	i = 0;
#   32|-> 	while ((sqe = io_uring_get_sqe(&ring)) != NULL)
#   33|   		i++;
#   34|   

Error: CPPCHECK_WARNING: [#def301]
liburing-2.6-build/liburing-2.6/test/sq-full.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def302]
liburing-2.6-build/liburing-2.6/test/sq-full.c:32:10: warning[deadcode.DeadStores]: Although the value stored to 'sqe' is used in the enclosing expression, the value is never actually read from 'sqe'
#   30|   
#   31|   	i = 0;
#   32|-> 	while ((sqe = io_uring_get_sqe(&ring)) != NULL)
#   33|   		i++;
#   34|   

Error: CPPCHECK_WARNING: [#def303]
liburing-2.6-build/liburing-2.6/test/sq-poll-dup.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def304]
liburing-2.6-build/liburing-2.6/test/sq-poll-kthread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def305]
liburing-2.6-build/liburing-2.6/test/sq-poll-kthread.c:132:2: warning[deadcode.DeadStores]: Value stored to 'pid' is never read
#  130|   	}
#  131|   
#  132|-> 	pid = wait(&status);
#  133|   	if (status != 0)
#  134|   		return WEXITSTATUS(status);

Error: CPPCHECK_WARNING: [#def306]
liburing-2.6-build/liburing-2.6/test/sq-poll-share.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def307]
liburing-2.6-build/liburing-2.6/test/sq-poll-share.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/sq-poll-share.c:97:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname, 16384)’
#   95|   	}
#   96|   
#   97|-> 	if (fname != argv[1])
#   98|   		unlink(fname);
#   99|   

Error: CPPCHECK_WARNING: [#def308]
liburing-2.6-build/liburing-2.6/test/sq-space_left.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def309]
liburing-2.6-build/liburing-2.6/test/sq-space_left.c:34:10: warning[deadcode.DeadStores]: Although the value stored to 'sqe' is used in the enclosing expression, the value is never actually read from 'sqe'
#   32|   
#   33|   	i = 0;
#   34|-> 	while ((sqe = io_uring_get_sqe(&ring)) != NULL) {
#   35|   		i++;
#   36|   		if ((s = io_uring_sq_space_left(&ring)) != 8 - i) {

Error: CPPCHECK_WARNING: [#def310]
liburing-2.6-build/liburing-2.6/test/sqpoll-disable-exit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-476): [#def311]
liburing-2.6-build/liburing-2.6/test/sqpoll-disable-exit.c:94: warning[nullPointer]: Possible null pointer dereference: ring_ptr_out
#   92|                           setup_params->cq_entries * SIZEOF_IO_URING_CQE;
#   93|     uint32_t ring_sz = sq_ring_sz > cq_ring_sz ? sq_ring_sz : cq_ring_sz;
#   94|->   *ring_ptr_out = mmap(vma1, ring_sz, PROT_READ | PROT_WRITE,
#   95|                          MAP_SHARED | MAP_POPULATE | MAP_FIXED, fd_io_uring,
#   96|                          IORING_OFF_SQ_RING);

Error: CLANG_WARNING: [#def312]
liburing-2.6-build/liburing-2.6/test/sqpoll-disable-exit.c:94:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'ring_ptr_out')
#   92|                           setup_params->cq_entries * SIZEOF_IO_URING_CQE;
#   93|     uint32_t ring_sz = sq_ring_sz > cq_ring_sz ? sq_ring_sz : cq_ring_sz;
#   94|->   *ring_ptr_out = mmap(vma1, ring_sz, PROT_READ | PROT_WRITE,
#   95|                          MAP_SHARED | MAP_POPULATE | MAP_FIXED, fd_io_uring,
#   96|                          IORING_OFF_SQ_RING);

Error: CPPCHECK_WARNING (CWE-476): [#def313]
liburing-2.6-build/liburing-2.6/test/sqpoll-disable-exit.c:98: warning[nullPointer]: Possible null pointer dereference: sqes_ptr_out
#   96|                          IORING_OFF_SQ_RING);
#   97|     uint32_t sqes_sz = setup_params->sq_entries * SIZEOF_IO_URING_SQE;
#   98|->   *sqes_ptr_out =
#   99|         mmap(vma2, sqes_sz, PROT_READ | PROT_WRITE,
#  100|              MAP_SHARED | MAP_POPULATE | MAP_FIXED, fd_io_uring, IORING_OFF_SQES);

Error: CPPCHECK_WARNING: [#def314]
liburing-2.6-build/liburing-2.6/test/sqpoll-exit-hang.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def315]
liburing-2.6-build/liburing-2.6/test/sqpoll-sleep.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def316]
liburing-2.6-build/liburing-2.6/test/statx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def317]
liburing-2.6-build/liburing-2.6/test/stdout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def318]
liburing-2.6-build/liburing-2.6/test/submit-and-wait.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def319]
liburing-2.6-build/liburing-2.6/test/submit-link-fail.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def320]
liburing-2.6-build/liburing-2.6/test/submit-reuse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def321]
liburing-2.6-build/liburing-2.6/test/submit-reuse.c: scope_hint: In function ‘test_reuse’
liburing-2.6-build/liburing-2.6/test/submit-reuse.c:172:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fname1, 0)’
#  170|   	fd2 = open(".reuse.2", O_RDONLY);
#  171|   	unlink(".reuse.2");
#  172|-> 	if (fd2 < 0) {
#  173|   		perror("open .reuse.2");
#  174|   		goto err;

Error: CPPCHECK_WARNING: [#def322]
liburing-2.6-build/liburing-2.6/test/symlink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def323]
liburing-2.6-build/liburing-2.6/test/sync-cancel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def324]
liburing-2.6-build/liburing-2.6/test/teardowns.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def325]
liburing-2.6-build/liburing-2.6/test/thread-exit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def326]
liburing-2.6-build/liburing-2.6/test/timeout-new.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def327]
liburing-2.6-build/liburing-2.6/test/timeout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def328]
liburing-2.6-build/liburing-2.6/test/truncate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def329]
liburing-2.6-build/liburing-2.6/test/truncate.c:153:6: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  151|   				if (i == 0) {
#  152|   					fprintf(stdout, "Ftruncate not supported, skipping\n");
#  153|-> 					ret = T_EXIT_SKIP;
#  154|   					goto out;
#  155|   				}

Error: CPPCHECK_WARNING: [#def330]
liburing-2.6-build/liburing-2.6/test/tty-write-dpoll.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def331]
liburing-2.6-build/liburing-2.6/test/tty-write-dpoll.c: scope_hint: In function ‘main’
liburing-2.6-build/liburing-2.6/test/tty-write-dpoll.c:39:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/ttyS0", 2050)’
#   37|   
#   38|   	ret = t_create_ring(SQES, &ring, 0);
#   39|-> 	if (ret == T_SETUP_SKIP)
#   40|   		return 0;
#   41|   	else if (ret < 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def332]
liburing-2.6-build/liburing-2.6/test/tty-write-dpoll.c:41:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/ttyS0", 2050)’
#   39|   	if (ret == T_SETUP_SKIP)
#   40|   		return 0;
#   41|-> 	else if (ret < 0)
#   42|   		return 1;
#   43|   

Error: CPPCHECK_WARNING: [#def333]
liburing-2.6-build/liburing-2.6/test/unlink.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def334]
liburing-2.6-build/liburing-2.6/test/version.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def335]
liburing-2.6-build/liburing-2.6/test/waitid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def336]
liburing-2.6-build/liburing-2.6/test/waitid.c:113:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#  111|   		return T_EXIT_FAIL;
#  112|   	}
#  113|-> 	if (si.si_pid != p2) {
#  114|   		fprintf(stderr, "expected pid %d, got %d\n", p2, si.si_pid);
#  115|   		return T_EXIT_FAIL;

Error: CLANG_WARNING: [#def337]
liburing-2.6-build/liburing-2.6/test/waitid.c:154:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#  152|   		return T_EXIT_FAIL;
#  153|   	}
#  154|-> 	if (si.si_pid != pid) {
#  155|   		fprintf(stderr, "expected pid %d, got %d\n", pid, si.si_pid);
#  156|   		return T_EXIT_FAIL;

Error: CLANG_WARNING: [#def338]
liburing-2.6-build/liburing-2.6/test/waitid.c:306:16: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
#  304|   		return T_EXIT_FAIL;
#  305|   	}
#  306|-> 	if (si.si_pid != pid) {
#  307|   		fprintf(stderr, "expected pid %d, got %d\n", pid, si.si_pid);
#  308|   		return T_EXIT_FAIL;

Error: CPPCHECK_WARNING: [#def339]
liburing-2.6-build/liburing-2.6/test/wakeup-hang.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def340]
liburing-2.6-build/liburing-2.6/test/wakeup-hang.c:74:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
#   72|   	if (ret) {
#   73|   		fprintf(stderr, "Unable to setup io_uring: %s\n", strerror(-ret));
#   74|-> 		return 1;
#   75|   	}
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def341]
liburing-2.6-build/liburing-2.6/test/wakeup-hang.c: scope_hint: In function ‘test_pipes’
liburing-2.6-build/liburing-2.6/test/wakeup-hang.c:74:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
#   72|   	if (ret) {
#   73|   		fprintf(stderr, "Unable to setup io_uring: %s\n", strerror(-ret));
#   74|-> 		return 1;
#   75|   	}
#   76|   

Error: CPPCHECK_WARNING: [#def342]
liburing-2.6-build/liburing-2.6/test/wq-aff.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def343]
liburing-2.6-build/liburing-2.6/test/xattr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-211.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameliburing-2.6-1.fc41
store-results-to/tmp/tmprf8dn0a0/liburing-2.6-1.fc41.tar.xz
time-created2024-07-03 16:06:53
time-finished2024-07-03 16:09:35
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmprf8dn0a0/liburing-2.6-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmprf8dn0a0/liburing-2.6-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9