Task #869 - added.err

back to task #869
download
Error: GCC_ANALYZER_WARNING (CWE-775):
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:
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:
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:
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: GCC_ANALYZER_WARNING (CWE-476):
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:
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:
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:
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:
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):
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:
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:
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:
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:
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:
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:
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:
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: CPPCHECK_WARNING:
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):
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:
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:
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):
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):
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:
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):
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):
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:
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:
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:
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:
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:
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:
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:
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:
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;