Error: SHELLCHECK_WARNING: [#def1] /usr/libexec/libvirt-guests.sh:109:5: warning[SC3043]: In POSIX sh, 'local' is undefined. # 107| local uri="$1" # 108| local persistent="$2" # 109|-> local list # 110| # 111| list="$(run_virsh_c "$uri" list --uuid $persistent)" Error: SHELLCHECK_WARNING: [#def2] /usr/libexec/libvirt-guests.sh:135:5: warning[SC3043]: In POSIX sh, 'local' is undefined. # 133| local uri="$1" # 134| local uuid="$2" # 135|-> local id # 136| # 137| guest_running="false" Error: SHELLCHECK_WARNING: [#def3] /usr/libexec/libvirt-guests.sh:487:9: warning[SC3043]: In POSIX sh, 'local' is undefined. # 485| eval_gettext "Running guests on \$uri URI: " # 486| # 487|-> local list # 488| list="$(list_guests "$uri")" # 489| if [ $? -eq 0 ]; then Error: SHELLCHECK_WARNING: [#def4] /usr/libexec/libvirt-guests.sh:504:13: warning[SC3043]: In POSIX sh, 'local' is undefined. # 502| # 503| if "$persistent_only"; then # 504|-> local transient # 505| transient="$(list_guests "$uri" "--transient")" # 506| if [ $? -eq 0 ]; then Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] libvirt-12.3.0/src/hyperv/hyperv_driver.c:4355:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘snapshotsRet’ libvirt-12.3.0/src/hyperv/hyperv_driver.c:4307:5: branch_false: following ‘false’ branch (when ‘__unsuppflags == 0’)... libvirt-12.3.0/src/hyperv/hyperv_driver.c:4312:9: branch_false: ...to here libvirt-12.3.0/src/hyperv/hyperv_driver.c:4312:8: branch_false: following ‘false’ branch... libvirt-12.3.0/src/hyperv/hyperv_driver.c:4315:19: branch_false: ...to here libvirt-12.3.0/src/hyperv/hyperv_driver.c:4317:8: branch_false: following ‘false’ branch... libvirt-12.3.0/src/hyperv/hyperv_driver.c:4321:10: branch_false: ...to here libvirt-12.3.0/src/hyperv/hyperv_driver.c:4330:8: branch_false: following ‘false’ branch (when ‘snaps’ is non-NULL)... libvirt-12.3.0/src/hyperv/hyperv_driver.c:4333:8: branch_false: ...to here libvirt-12.3.0/src/hyperv/hyperv_driver.c:4333:8: branch_false: following ‘false’ branch (when ‘count <= 0’)... libvirt-12.3.0/src/hyperv/hyperv_driver.c:4348:5: branch_false: ...to here libvirt-12.3.0/src/hyperv/hyperv_driver.c:4348:5: release_memory: ‘snapshotsRet’ is NULL libvirt-12.3.0/src/hyperv/hyperv_driver.c:4352:8: branch_true: following ‘true’ branch (when ‘ret < 0’)... libvirt-12.3.0/src/hyperv/hyperv_driver.c:4352:8: branch_true: ...to here libvirt-12.3.0/src/hyperv/hyperv_driver.c:4354:21: branch_true: following ‘true’ branch... libvirt-12.3.0/src/hyperv/hyperv_driver.c:4355:29: branch_true: ...to here libvirt-12.3.0/src/hyperv/hyperv_driver.c:4355:17: danger: dereference of NULL ‘snapshotsRet + i * 8’ # 4353| size_t i; # 4354| for (i = 0; i < count; i++) { # 4355|-> if (snapshotsRet[i]) # 4356| virObjectUnref(snapshotsRet[i]); # 4357| }
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-68.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | libvirt-12.0.0-3.fc44 |
| diffbase-store-results-to | /tmp/tmp616uthx4/libvirt-12.0.0-3.fc44.tar.xz |
| diffbase-time-created | 2026-06-01 14:49:37 |
| diffbase-time-finished | 2026-06-01 15:01:41 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp616uthx4/libvirt-12.0.0-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp616uthx4/libvirt-12.0.0-3.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-68.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libvirt-12.3.0-1.fc45 |
| store-results-to | /tmp/tmpdg0m10fl/libvirt-12.3.0-1.fc45.tar.xz |
| time-created | 2026-06-01 15:01:59 |
| time-finished | 2026-06-01 15:12:07 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpdg0m10fl/libvirt-12.3.0-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpdg0m10fl/libvirt-12.3.0-1.fc45.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |