Newly introduced findings

List of Findings

Error: COMPILER_WARNING: [#def1]
crun-HEAD/src/libcrun/chroot_realpath.c: scope_hint: In function 'chroot_realpath'
crun-HEAD/src/libcrun/chroot_realpath.c:138:65: warning[-Wsizeof-array-argument]: 'sizeof' on array function parameter 'resolved_path' will return size of 'char *'
crun-HEAD/src/libcrun/chroot_realpath.c:50:66: note: declared here
#  136|   			/* If a component doesn't exist, then return what we could translate. */
#  137|   			if (errno == ENOENT) {
#  138|-> 				snprintf (resolved_path, sizeof (resolved_path), "%s%s%s", got_path, path[0] == '/' || path[0] == '\0' ? "" : "/", path);
#  139|   				return resolved_path;
#  140|   			}

Error: COMPILER_WARNING (CWE-805): [#def2]
crun-HEAD/src/libcrun/chroot_realpath.c:138:65: warning[-Wsizeof-pointer-memaccess]: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length?
#  138 |                                 snprintf (resolved_path, sizeof (resolved_path), "%s%s%s", got_path, path[0] == '/' || path[0] == '\0' ? "" : "/", path);
#      |                                                                 ^
#  136|   			/* If a component doesn't exist, then return what we could translate. */
#  137|   			if (errno == ENOENT) {
#  138|-> 				snprintf (resolved_path, sizeof (resolved_path), "%s%s%s", got_path, path[0] == '/' || path[0] == '\0' ? "" : "/", path);
#  139|   				return resolved_path;
#  140|   			}

Scan Properties

analyzer-version-clippy1.90.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.90.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-187.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.24-1.20250923124815419448.main.6.g270c76ad
diffbase-store-results-to/tmp/tmp3mud0386/crun-1.24-1.20250923124815419448.main.6.g270c76ad.tar.xz
diffbase-time-created2025-09-26 21:05:28
diffbase-time-finished2025-09-26 21:11:11
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,gcc,unicontrol,clippy' '-o' '/tmp/tmp3mud0386/crun-1.24-1.20250923124815419448.main.6.g270c76ad.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp3mud0386/crun-1.24-1.20250923124815419448.main.6.g270c76ad.src.rpm'
diffbase-tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-187.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.24-1.20250926210044406987.pr1885.8.g7d1ab211
store-results-to/tmp/tmpd2i7kt0i/crun-1.24-1.20250926210044406987.pr1885.8.g7d1ab211.tar.xz
time-created2025-09-26 21:11:37
time-finished2025-09-26 21:16:44
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,gcc,unicontrol,clippy' '-o' '/tmp/tmpd2i7kt0i/crun-1.24-1.20250926210044406987.pr1885.8.g7d1ab211.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpd2i7kt0i/crun-1.24-1.20250926210044406987.pr1885.8.g7d1ab211.src.rpm'
tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9