forked from pool/libvirt
eda6aa8e7f
qemuAgentGetVCPUs() dfc69235-CVE-2013-4153.patch - CVE-2013-4154: Prevent crash of libvirtd without guest agent configuration 96518d43-CVE-2013-4154.patch bnc#830498 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=286
26 lines
804 B
Diff
26 lines
804 B
Diff
commit dfc692350a04a70b4ca65667c30869b3bfdaf034
|
|
Author: Peter Krempa <pkrempa@redhat.com>
|
|
Date: Tue Jul 16 15:39:06 2013 +0200
|
|
|
|
qemu: Fix double free of returned JSON array in qemuAgentGetVCPUs()
|
|
|
|
A part of the returned monitor response was freed twice and caused
|
|
crashes of the daemon when using guest agent cpu count retrieval.
|
|
|
|
# virsh vcpucount dom --guest
|
|
|
|
Introduced in v1.0.6-48-gc6afcb0
|
|
|
|
Index: libvirt-1.1.0/src/qemu/qemu_agent.c
|
|
===================================================================
|
|
--- libvirt-1.1.0.orig/src/qemu/qemu_agent.c
|
|
+++ libvirt-1.1.0/src/qemu/qemu_agent.c
|
|
@@ -1538,7 +1538,6 @@ qemuAgentGetVCPUs(qemuAgentPtr mon,
|
|
cleanup:
|
|
virJSONValueFree(cmd);
|
|
virJSONValueFree(reply);
|
|
- virJSONValueFree(data);
|
|
return ret;
|
|
}
|
|
|