Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] crun-HEAD/src/libcrun/linux.c: scope_hint: In function 'join_namespaces' crun-HEAD/src/libcrun/linux.c:4148:17: warning[-Wanalyzer-null-argument]: use of NULL 'cwd' where non-null expected /usr/include/unistd.h:517:12: note: argument 1 of 'chdir' must be non-null # 4146| if (value == CLONE_NEWNS) # 4147| { # 4148|-> ret = chdir (cwd); # 4149| if (UNLIKELY (ret < 0)) # 4150| return crun_make_error (err, errno, "chdir `%s`", cwd); Error: GCC_ANALYZER_WARNING (CWE-1341): [#def2] crun-HEAD/src/libcrun/linux.c: scope_hint: In function 'libcrun_join_process' crun-HEAD/src/libcrun/linux.c:5854:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'sync_socket_fd[0]' # 5852| exit: # 5853| if (sync_socket_fd[0] >= 0) # 5854|-> TEMP_FAILURE_RETRY (close (sync_socket_fd[0])); # 5855| if (sync_socket_fd[1] >= 0) # 5856| TEMP_FAILURE_RETRY (close (sync_socket_fd[1])); Error: GCC_ANALYZER_WARNING (CWE-1341): [#def3] crun-HEAD/src/libcrun/linux.c:5856:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'sync_socket_fd[1]' # 5854| TEMP_FAILURE_RETRY (close (sync_socket_fd[0])); # 5855| if (sync_socket_fd[1] >= 0) # 5856|-> TEMP_FAILURE_RETRY (close (sync_socket_fd[1])); # 5857| return ret; # 5858| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] crun-HEAD/src/libcrun/linux.c: scope_hint: In function 'libcrun_make_runtime_mounts' crun-HEAD/src/libcrun/linux.c:6485:1: warning[-Wanalyzer-malloc-leak]: leak of 'data' crun-HEAD/src/libcrun/linux.c: scope_hint: In function 'libcrun_make_runtime_mounts' crun-HEAD/src/libcrun/linux.c: scope_hint: In function 'libcrun_make_runtime_mounts' crun-HEAD/src/libcrun/linux.c: scope_hint: In function 'libcrun_make_runtime_mounts' crun-HEAD/src/libcrun/linux.c: scope_hint: In function 'libcrun_make_runtime_mounts' # 6483| # 6484| return run_in_container_namespace (status, do_mount_in_a_container, &args, err); # 6485|-> } # 6486| # 6487| int Error: GCC_ANALYZER_WARNING (CWE-1341): [#def5] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'dfd_clone' crun-HEAD/src/libcrun/cgroup-utils.c:671:12: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/cgroup-utils.c:671:12: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/cgroup-utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/cgroup-utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h:24: included_from: Included from here. crun-HEAD/src/libcrun/cgroup-utils.c: scope_hint: In function 'cleanup_closep.part.0' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110|
| analyzer-version-clippy | 1.94.1 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.0.1 |
| analyzer-version-gcc-analyzer | 16.0.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.94.1 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.0.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.1 |
| diffbase-analyzer-version-shellcheck | 0.11.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-174.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | crun-1.27-1.20260402151752063764.main.6.g0097db1d |
| diffbase-store-results-to | /tmp/tmpt5mlg7zp/crun-1.27-1.20260402151752063764.main.6.g0097db1d.tar.xz |
| diffbase-time-created | 2026-04-16 16:34:40 |
| diffbase-time-finished | 2026-04-16 16:38:12 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpt5mlg7zp/crun-1.27-1.20260402151752063764.main.6.g0097db1d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpt5mlg7zp/crun-1.27-1.20260402151752063764.main.6.g0097db1d.src.rpm' |
| diffbase-tool-version | csmock-3.8.5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-174.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | crun-1.27-1.20260416162152188171.pr2069.8.gad75dfe7 |
| store-results-to | /tmp/tmp4xvma2vm/crun-1.27-1.20260416162152188171.pr2069.8.gad75dfe7.tar.xz |
| time-created | 2026-04-16 16:38:25 |
| time-finished | 2026-04-16 16:41:29 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp4xvma2vm/crun-1.27-1.20260416162152188171.pr2069.8.gad75dfe7.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp4xvma2vm/crun-1.27-1.20260416162152188171.pr2069.8.gad75dfe7.src.rpm' |
| tool-version | csmock-3.8.5-1.el9 |