Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
crun-1.21-build/crun-HEAD/src/libcrun/handlers/krun.c:149:12: warning[-Wunused-variable]: unused variable 'value'
#  149 |   yajl_val value = NULL;
#      |            ^~~~~
#  147|     yajl_val cpus = NULL;
#  148|     yajl_val ram_mib = NULL;
#  149|->   yajl_val value = NULL;
#  150|     const char *path_cpus[] = { "cpus", (const char *) 0 };
#  151|     const char *path_ram_mib[] = { "ram_mib", (const char *) 0 };

Error: COMPILER_WARNING (CWE-563): [#def2]
crun-1.21-build/crun-HEAD/src/libcrun/handlers/krun.c: scope_hint: In function 'libkrun_configure_vm'
crun-1.21-build/crun-HEAD/src/libcrun/handlers/krun.c:152:10: warning[-Wunused-variable]: unused variable 'config_size'
#  152 |   size_t config_size;
#      |          ^~~~~~~~~~~
#  150|     const char *path_cpus[] = { "cpus", (const char *) 0 };
#  151|     const char *path_ram_mib[] = { "ram_mib", (const char *) 0 };
#  152|->   size_t config_size;
#  153|     int ret;
#  154|   

Scan Properties

analyzer-version-clippy1.85.1
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.85.1
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.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-215.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecrun-1.21-1.20250328082045725862.main.3.g0f732e31
diffbase-store-results-to/tmp/tmp0zr3xugf/crun-1.21-1.20250328082045725862.main.3.g0f732e31.tar.xz
diffbase-time-created2025-03-28 08:52:57
diffbase-time-finished2025-03-28 08:57:51
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmp0zr3xugf/crun-1.21-1.20250328082045725862.main.3.g0f732e31.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp0zr3xugf/crun-1.21-1.20250328082045725862.main.3.g0f732e31.src.rpm'
diffbase-tool-versioncsmock-3.8.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-215.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namecrun-1.21-1.20250328084552412442.pr1708.7.gdd13ca94
store-results-to/tmp/tmpzvk5y8o7/crun-1.21-1.20250328084552412442.pr1708.7.gdd13ca94.tar.xz
time-created2025-03-28 08:58:05
time-finished2025-03-28 09:02:46
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,unicontrol,clippy,gcc' '-o' '/tmp/tmpzvk5y8o7/crun-1.21-1.20250328084552412442.pr1708.7.gdd13ca94.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpzvk5y8o7/crun-1.21-1.20250328084552412442.pr1708.7.gdd13ca94.src.rpm'
tool-versioncsmock-3.8.0-1.el9