Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
crun-HEAD/src/libcrun/handlers/krun.c: scope_hint: In function 'libkrun_exec'
crun-HEAD/src/libcrun/handlers/krun.c:412:13: warning[-Wunused-variable]: unused variable 'krun_set_vm_config'
#  412 |   int32_t (*krun_set_vm_config) (uint32_t ctx_id, uint8_t num_vcpus, uint32_t ram_mib);
#      |             ^~~~~~~~~~~~~~~~~~
#  410|     int32_t (*krun_set_log_level) (uint32_t level);
#  411|     int (*krun_start_enter) (uint32_t ctx_id);
#  412|->   int32_t (*krun_set_vm_config) (uint32_t ctx_id, uint8_t num_vcpus, uint32_t ram_mib);
#  413|     int32_t (*krun_set_root) (uint32_t ctx_id, const char *root_path);
#  414|     int32_t (*krun_set_root_disk) (uint32_t ctx_id, const char *disk_path);

Scan Properties

analyzer-version-clippy1.94.1
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.94.1
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.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-120.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.20260320.200800.gd35503f.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.27-1.20260420154203921286.pr2071.26.g3ec076b3
diffbase-store-results-to/tmp/tmp4cjwvjya/crun-1.27-1.20260420154203921286.pr2071.26.g3ec076b3.tar.xz
diffbase-time-created2026-04-20 15:49:45
diffbase-time-finished2026-04-20 15:52:48
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp4cjwvjya/crun-1.27-1.20260420154203921286.pr2071.26.g3ec076b3.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp4cjwvjya/crun-1.27-1.20260420154203921286.pr2071.26.g3ec076b3.src.rpm'
diffbase-tool-versioncsmock-3.8.5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-120.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260320.200800.gd35503f.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecrun-1.27-1.20260420101602925495.main.22.g610b0ef3
store-results-to/tmp/tmph5lniwuw/crun-1.27-1.20260420101602925495.main.22.g610b0ef3.tar.xz
time-created2026-04-20 15:45:40
time-finished2026-04-20 15:49:18
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmph5lniwuw/crun-1.27-1.20260420101602925495.main.22.g610b0ef3.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmph5lniwuw/crun-1.27-1.20260420101602925495.main.22.g610b0ef3.src.rpm'
tool-versioncsmock-3.8.5-1.el9