Task #119191 - added.err
back to task #119191download
Error: SHELLCHECK_WARNING:
/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:
/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:
/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:
/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):
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| }