forked from pool/libvirt
5674459f46
- CVE-2013-2230: Fix crash when multiple event callbacks were registered f38c8185-CVE-2013-2230.patch bnc#827801 - Update to libvirt 1.1.0 - Extensible migration APIs - Add a policy kit access control driver - various improvements in the Xen and libxl drivers - improve networking support on BSD - agent based vCPU hotplug support - Many incremental improvements and bug fixes, see http://libvirt.org/news.html - Drop upstream patches: 244e0b8c-CVE-2013-2218.patch OBS-URL: https://build.opensuse.org/request/show/182783 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=282
29 lines
886 B
Diff
29 lines
886 B
Diff
commit f38c8185f97720ecae7ef2291fbaa5d6b0209e17
|
|
Author: Ján Tomko <jtomko@redhat.com>
|
|
Date: Tue Jul 2 15:17:09 2013 +0200
|
|
|
|
Fix crash when multiple event callbacks were registered
|
|
|
|
CVE-2013-2230
|
|
|
|
Don't overwrite the callback ID returned by
|
|
virDomainEventStateRegisterID in ret by 0.
|
|
|
|
Introduced by abf75aea.
|
|
|
|
Index: libvirt-1.1.0/src/qemu/qemu_driver.c
|
|
===================================================================
|
|
--- libvirt-1.1.0.orig/src/qemu/qemu_driver.c
|
|
+++ libvirt-1.1.0/src/qemu/qemu_driver.c
|
|
@@ -9914,9 +9914,7 @@ qemuConnectDomainEventRegisterAny(virCon
|
|
driver->domainEventState,
|
|
dom, eventID,
|
|
callback, opaque, freecb, &ret) < 0)
|
|
- goto cleanup;
|
|
-
|
|
- ret = 0;
|
|
+ ret = -1;
|
|
|
|
cleanup:
|
|
return ret;
|