]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't steal pointers from 'persistentDef' in qemuDomainGetBlockIoTune
authorPeter Krempa <pkrempa@redhat.com>
Fri, 17 Mar 2017 07:43:27 +0000 (08:43 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 17 Mar 2017 10:12:33 +0000 (11:12 +0100)
commit4b57f765027c6e157a41a7445ec23359655be272
tree080349d735592c473798b6d89e61f8492cf151e3
parent009c07b9f22a8937c2035b7f27ef80b1b83b0b33
qemu: Don't steal pointers from 'persistentDef' in qemuDomainGetBlockIoTune

While the code path that queries the monitor allocates a separate copy
of the 'group_name' string the path querying the config would not copy
it. The call to virTypedParameterAssign would then steal the pointer
(without clearing it) and the RPC layer freed it. Any subsequent call
resulted into a crash.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1433183
src/qemu/qemu_driver.c