Error: GCC_ANALYZER_WARNING (CWE-775): [#def1] bubblewrap-0.10.0-build/bubblewrap-0.10.0/bind-mount.c: scope_hint: In function ‘bind_mount’ bubblewrap-0.10.0-build/bubblewrap-0.10.0/bind-mount.c:408:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(realpath(dest, 0), 2621440)’ # 406| return BIND_MOUNT_ERROR_REALPATH_DEST; # 407| # 408|-> dest_fd = open (resolved_dest, O_PATH | O_CLOEXEC); # 409| if (dest_fd < 0) # 410| { Error: GCC_ANALYZER_WARNING: [#def2] bubblewrap-0.10.0-build/bubblewrap-0.10.0/tests/try-syscall.c: scope_hint: In function ‘main’ bubblewrap-0.10.0-build/bubblewrap-0.10.0/tests/try-syscall.c:157:15: warning[-Wanalyzer-fd-use-without-check]: ‘listen’ on possibly invalid file descriptor ‘-1’ # 155| { # 156| /* If not blocked by seccomp, this will fail with EBADF */ # 157|-> if (listen (-1, 42) != 0) # 158| { # 159| errsv = errno; Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.c: scope_hint: In function ‘load_file_data’ bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.c:168:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xrealloc(data, (long unsigned int)data_len)’ # 166| if (res == NULL) # 167| die_oom (); # 168|-> return res; # 169| } # 170| Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.c: scope_hint: In function ‘readlink_malloc’ bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.c:168:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xrealloc(value, size)’ # 166| if (res == NULL) # 167| die_oom (); # 168|-> return res; # 169| } # 170| Error: GCC_ANALYZER_WARNING (CWE-415): [#def5] bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.h:147:5: warning[-Wanalyzer-double-free]: double-‘free’ of ‘data’ bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.c: scope_hint: In function ‘load_file_data’ # 145| # 146| if (*pp) # 147|-> free (*pp); # 148| } # 149| Error: GCC_ANALYZER_WARNING (CWE-415): [#def6] bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.h:147:5: warning[-Wanalyzer-double-free]: double-‘free’ of ‘value’ bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.c: scope_hint: In function ‘readlink_malloc’ bubblewrap-0.10.0-build/bubblewrap-0.10.0/utils.h:22: included_from: Included from here. # 145| # 146| if (*pp) # 147|-> free (*pp); # 148| } # 149|
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 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-69.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | bubblewrap-0.10.0-1.fc42 |
store-results-to | /tmp/tmpn5aj3zpl/bubblewrap-0.10.0-1.fc42.tar.xz |
time-created | 2024-11-12 23:20:31 |
time-finished | 2024-11-12 23:21:57 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpn5aj3zpl/bubblewrap-0.10.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpn5aj3zpl/bubblewrap-0.10.0-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |