From 3e50316f0e1f1a78eaf88ab38e12b6883b37d7291aad57765a11817337de136c Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Thu, 7 Jan 2010 01:08:02 +0000 Subject: [PATCH] Add missing node-dev-free.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=32 --- node-dev-free.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 node-dev-free.patch diff --git a/node-dev-free.patch b/node-dev-free.patch new file mode 100644 index 0000000..e2700ee --- /dev/null +++ b/node-dev-free.patch @@ -0,0 +1,29 @@ +This invalid free results in heap corruption. Some symptoms I saw +because of this were libvirtd crashing and virt-manager hanging +while trying to enumerate devices. +--- + src/node_device/node_device_driver.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +Index: libvirt-0.7.5/src/node_device/node_device_driver.c +=================================================================== +--- libvirt-0.7.5.orig/src/node_device/node_device_driver.c ++++ libvirt-0.7.5/src/node_device/node_device_driver.c +@@ -78,7 +78,7 @@ static int update_driver_name(virConnect + virNodeDeviceObjPtr dev) + { + char *driver_link = NULL; +- char *devpath; ++ char *devpath = NULL; + char *p; + int ret = -1; + +@@ -114,7 +114,7 @@ static int update_driver_name(virConnect + + cleanup: + VIR_FREE(driver_link); +- free(devpath); ++ VIR_FREE(devpath); + return ret; + } + #else