Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'open_seccomp_bpf_dirfd'
crun-HEAD/src/libcrun/seccomp.c:595:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '*container.context'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'open_seccomp_bpf_dirfd'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'open_seccomp_bpf_dirfd'
#  593|   
#  594|     /* relative path to dirfd.  */
#  595|->   ret = append_paths (rel_path, err, container->context->id, "seccomp.bpf", NULL);
#  596|     if (UNLIKELY (ret < 0))
#  597|       {

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def2]
crun-HEAD/src/libcrun/seccomp.c:598:27: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'open_rundir_dirfd(<unknown>,  err)'
crun-HEAD/src/libcrun/seccomp.c: scope_hint: In function 'open_seccomp_bpf_dirfd'
#  596|     if (UNLIKELY (ret < 0))
#  597|       {
#  598|->       TEMP_FAILURE_RETRY (close (dirfd));
#  599|         return ret;
#  600|       }

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-66.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260812.073944.g55de5c3.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.29.1-1.20260813061608090479.main.1.g58c341a1
diffbase-store-results-to/tmp/tmpgl55xc7g/crun-1.29.1-1.20260813061608090479.main.1.g58c341a1.tar.xz
diffbase-time-created2026-08-13 10:59:11
diffbase-time-finished2026-08-13 11:03:54
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpgl55xc7g/crun-1.29.1-1.20260813061608090479.main.1.g58c341a1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpgl55xc7g/crun-1.29.1-1.20260813061608090479.main.1.g58c341a1.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260810.142351.gef180f1-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-66.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260812.073944.g55de5c3.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecrun-1.29.1-1.20260813105457383780.pr2186.30.g9b62c326
store-results-to/tmp/tmpljpdvtpb/crun-1.29.1-1.20260813105457383780.pr2186.30.g9b62c326.tar.xz
time-created2026-08-13 11:04:23
time-finished2026-08-13 11:07:27
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpljpdvtpb/crun-1.29.1-1.20260813105457383780.pr2186.30.g9b62c326.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpljpdvtpb/crun-1.29.1-1.20260813105457383780.pr2186.30.g9b62c326.src.rpm'
tool-versioncsmock-3.8.7.20260810.142351.gef180f1-1.el9