]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix crash in virDomainMemoryStats with old qemu
authorJiri Denemark <jdenemar@redhat.com>
Wed, 5 Feb 2014 10:15:31 +0000 (11:15 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 6 Feb 2014 10:29:29 +0000 (11:29 +0100)
commit05bf937572ca6ffec213a045dda171d7543e7efd
treee432485fbc02bcbfe7c2447748582472c8200e8a
parent5d2691cc4c0b8d64440b072c93f157f641c37a72
qemu: Fix crash in virDomainMemoryStats with old qemu

If virDomainMemoryStats was run on a domain with virtio balloon driver
running on an old qemu which supports QMP but does not support qom-list
QMP command, libvirtd would crash. The reason is we did not check if
qemuMonitorJSONGetObjectListPaths failed and moreover we even stored its
result in an unsigned integer type.
src/qemu/qemu_monitor.c