Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_exec_with_options'
crun-HEAD/src/libcrun/container.c:3812:15: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
# 3812 |               write (pipefd1, &ret, sizeof (ret));
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3810|                 const char *msg = (*err)->msg;
# 3811|                 ret = crun_error_get_errno (err);
# 3812|->               write (pipefd1, &ret, sizeof (ret));
# 3813|                 write (pipefd1, msg, strlen (msg) + 1);
# 3814|                 TEMP_FAILURE_RETRY (close (pipefd1));

Error: COMPILER_WARNING (CWE-252): [#def2]
crun-HEAD/src/libcrun/container.c:3813:15: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result'
# 3813 |               write (pipefd1, msg, strlen (msg) + 1);
#      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 3811|                 ret = crun_error_get_errno (err);
# 3812|                 write (pipefd1, &ret, sizeof (ret));
# 3813|->               write (pipefd1, msg, strlen (msg) + 1);
# 3814|                 TEMP_FAILURE_RETRY (close (pipefd1));
# 3815|                 pipefd1 = -1;

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_198(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.17.1
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.17.1
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-22.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.22-1.20250710084033723163.main.37.g57d0192d
diffbase-store-results-to/tmp/tmpu9s941lq/crun-1.22-1.20250710084033723163.main.37.g57d0192d.tar.xz
diffbase-time-created2025-07-10 14:57:10
diffbase-time-finished2025-07-10 15:15:27
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,shellcheck,cppcheck,unicontrol' '-o' '/tmp/tmpu9s941lq/crun-1.22-1.20250710084033723163.main.37.g57d0192d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpu9s941lq/crun-1.22-1.20250710084033723163.main.37.g57d0192d.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-22.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.22-1.20250710144511108554.pr1824.38.g5cff6153
store-results-to/tmp/tmpgc9i9zx4/crun-1.22-1.20250710144511108554.pr1824.38.g5cff6153.tar.xz
time-created2025-07-10 15:16:22
time-finished2025-07-10 15:35:13
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,shellcheck,cppcheck,unicontrol' '-o' '/tmp/tmpgc9i9zx4/crun-1.22-1.20250710144511108554.pr1824.38.g5cff6153.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpgc9i9zx4/crun-1.22-1.20250710144511108554.pr1824.38.g5cff6153.src.rpm'
tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9