Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
crun-HEAD/src/libcrun/container.c: scope_hint: In function 'get_dev_null_stat'
crun-HEAD/src/libcrun/container.c:1027:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 524290)'
# 1025|       return 0;
# 1026|   
# 1027|->   fd = open ("/dev/null", O_RDWR | O_CLOEXEC);
# 1028|     if (UNLIKELY (fd == -1))
# 1029|       return crun_make_error (err, errno, "open `/dev/null`");

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
crun-HEAD/src/libcrun/utils.h:107:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'fd'
crun-HEAD/src/libcrun/container.c: scope_hint: In function 'get_dev_null_stat'
#  105|   {
#  106|     int *pp = (int *) p;
#  107|->   if (*pp >= 0)
#  108|       TEMP_FAILURE_RETRY (close (*pp));
#  109|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'exec_process_entrypoint'
crun-HEAD/src/libcrun/utils.h:228:6: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(*process_201(D)->args)'
crun-HEAD/src/libcrun/utils.h:57:40: note: in definition of macro 'UNLIKELY'
crun-HEAD/src/libcrun/container.c: scope_hint: In function 'exec_process_entrypoint'
#  226|   
#  227|     ret = strdup (str);
#  228|->   if (ret == NULL)
#  229|       OOM ();
#  230|   

Scan Properties

analyzer-version-clippy1.88.0
analyzer-version-cppcheck2.18.0
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.88.0
diffbase-analyzer-version-cppcheck2.18.0
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-13.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.23-1.20250731151613366940.main.9.gb403b8af
diffbase-store-results-to/tmp/tmpb9g70ze3/crun-1.23-1.20250731151613366940.main.9.gb403b8af.tar.xz
diffbase-time-created2025-08-05 12:36:52
diffbase-time-finished2025-08-05 12:42:35
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmpb9g70ze3/crun-1.23-1.20250731151613366940.main.9.gb403b8af.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpb9g70ze3/crun-1.23-1.20250731151613366940.main.9.gb403b8af.src.rpm'
diffbase-tool-versioncsmock-3.8.2.20250805.095208.g2a76525-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-13.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.23.1-1.20250805122844229978.pr1847.4.gf0bbbc01
store-results-to/tmp/tmpvjx5nnbd/crun-1.23.1-1.20250805122844229978.pr1847.4.gf0bbbc01.tar.xz
time-created2025-08-05 12:43:03
time-finished2025-08-05 12:48:10
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,cppcheck,clippy,gcc' '-o' '/tmp/tmpvjx5nnbd/crun-1.23.1-1.20250805122844229978.pr1847.4.gf0bbbc01.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpvjx5nnbd/crun-1.23.1-1.20250805122844229978.pr1847.4.gf0bbbc01.src.rpm'
tool-versioncsmock-3.8.2.20250805.095208.g2a76525-1.el9