]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't access uninitialized memory
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 11 Mar 2016 13:21:56 +0000 (14:21 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 16 Mar 2016 09:49:12 +0000 (10:49 +0100)
commit71fa2eb26c18c53d9e498e5f75c6307003e72c8e
tree26cb0b538397d1e95f3d001b986c2a1078458195
parent26f3d9c26ccc8e380ef9e1e9a8df51aa7c2387d2
qemu: Don't access uninitialized memory

In qemuConnectDomainXMLToNative() we set up the monitor, but we never
memset() it to zeros.  Thanks to the introduction of the logfile
parameter of chardevs (and the logfile member of the struct), we started
checking whether that's non-NULL and that exposed this old error.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_driver.c