Error: GCC_ANALYZER_WARNING (CWE-775): [#def1] 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 (CWE-401): [#def2] 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: GCC_ANALYZER_WARNING (CWE-401): [#def3] 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-775): [#def4] 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): [#def5] 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|
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-85.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | liburing-2.8-1.fc42 |
diffbase-store-results-to | /tmp/tmpcbb5rz77/liburing-2.8-1.fc42.tar.xz |
diffbase-time-created | 2024-11-13 01:46:42 |
diffbase-time-finished | 2024-11-13 01:50:18 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpcbb5rz77/liburing-2.8-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpcbb5rz77/liburing-2.8-1.fc42.src.rpm' |
diffbase-tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-85.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | liburing-2.6-2.fc41 |
store-results-to | /tmp/tmpgcsvdyci/liburing-2.6-2.fc41.tar.xz |
time-created | 2024-11-13 01:42:56 |
time-finished | 2024-11-13 01:46:28 |
title | Fixed findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpgcsvdyci/liburing-2.6-2.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpgcsvdyci/liburing-2.6-2.fc41.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |