Newly introduced defects
List of Defects
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
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: [#def2]
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: [#def3]
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: [#def4]
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): [#def5]
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: [#def6]
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: [#def7]
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: [#def8]
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: [#def9]
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): [#def10]
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: [#def11]
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: [#def12]
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: [#def13]
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: [#def14]
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: [#def15]
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: [#def16]
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: [#def17]
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: [#def18]
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): [#def19]
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: [#def20]
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: [#def21]
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): [#def22]
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): [#def23]
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: [#def24]
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): [#def25]
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): [#def26]
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: [#def27]
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: [#def28]
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: [#def29]
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: [#def30]
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: [#def31]
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: [#def32]
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: [#def33]
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: [#def34]
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;
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-211.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | liburing-2.5-3.fc40 |
diffbase-store-results-to | /tmp/tmpa92nef5d/liburing-2.5-3.fc40.tar.xz |
diffbase-time-created | 2024-07-03 16:03:48 |
diffbase-time-finished | 2024-07-03 16:06:41 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpa92nef5d/liburing-2.5-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpa92nef5d/liburing-2.5-3.fc40.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-211.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | liburing-2.6-1.fc41 |
store-results-to | /tmp/tmprf8dn0a0/liburing-2.6-1.fc41.tar.xz |
time-created | 2024-07-03 16:06:53 |
time-finished | 2024-07-03 16:09:35 |
title | Newly introduced defects |
tool | csmock |
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-version | csmock-3.5.3-1.el9 |