]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix a segfault in qemuProcessWaitForMonitor
authorJán Tomko <jtomko@redhat.com>
Thu, 3 Jan 2013 18:07:55 +0000 (19:07 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 4 Jan 2013 10:00:43 +0000 (11:00 +0100)
commitb7a443fcbb009fc89904bdc86b2457ec6f65ee53
tree4655c8fe0237f377312f0d391658400831522283
parent718af45895cc3d95401df71908f707472d3f7398
qemu: fix a segfault in qemuProcessWaitForMonitor

Commit b3f2b4ca5cfe98b08ffdb96f0455e3e333e5ace6 left buf unallocated in
the case of QMP capability probing being used, leading to a segfault in
strlen in the cleanup path.

This patch opens the log and allocates the buffer if QMP probing was
used, so we can display the helpful error message.
src/qemu/qemu_process.c