Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'open_proc'
crun-HEAD/src/libcrun/utils.c:2841:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/proc", 589824)'
# 2839|   #endif
# 2840|   
# 2841|->   fd = open ("/proc", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
# 2842|     if (fd < 0)
# 2843|       return crun_make_error (err, errno, "open `/proc`");

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def2]
crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'libcrun_open_proc_file'
crun-HEAD/src/libcrun/utils.c:2872:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '<unknown>'
crun-HEAD/src/libcrun/utils.c: scope_hint: In function 'libcrun_open_proc_file'
# 2870|     /* requires closing if not cached */
# 2871|     if (! container)
# 2872|->     TEMP_FAILURE_RETRY (close (proc_fd));
# 2873|   
# 2874|     if (UNLIKELY (fd < 0))

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer15.2.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-217.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.25.1-1.20251220190913712756.main.37.gc0011b8d
diffbase-store-results-to/tmp/tmpw7hcjp8x/crun-1.25.1-1.20251220190913712756.main.37.gc0011b8d.tar.xz
diffbase-time-created2025-12-22 10:51:05
diffbase-time-finished2025-12-22 10:57:17
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpw7hcjp8x/crun-1.25.1-1.20251220190913712756.main.37.gc0011b8d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpw7hcjp8x/crun-1.25.1-1.20251220190913712756.main.37.gc0011b8d.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-217.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecrun-1.25.1-1.20251222104133813676.pr1939.41.g75f7ac52
store-results-to/tmp/tmpkyyq_gxo/crun-1.25.1-1.20251222104133813676.pr1939.41.g75f7ac52.tar.xz
time-created2025-12-22 10:57:38
time-finished2025-12-22 11:03:13
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpkyyq_gxo/crun-1.25.1-1.20251222104133813676.pr1939.41.g75f7ac52.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpkyyq_gxo/crun-1.25.1-1.20251222104133813676.pr1939.41.g75f7ac52.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9