[libvirt] [PATCH] libxl: fix memory corruption introduced by commit b55cc5f4e
Eric Blake
eblake at redhat.com
Mon Aug 25 23:31:53 UTC 2014
On 08/25/2014 05:01 PM, Jim Fehlig wrote:
> Commit b55cc5f4e did a shallow copy of libxl_{sdl,vnc}_info from the
> domain config to the build info, which resulted in double-freeing
> strings contained in the structures during cleanup, which later
> resulted in a libvirtd crash. Fix by performing a deep copy of the
> structure, VIR_STRDUP'ing embedded strings instead of simply copying
> their pointers.
>
> Fixes the following issue reported on the libvirt dev list
>
> https://www.redhat.com/archives/libvir-list/2014-August/msg01112.html
> Signed-off-by: Jim Fehlig <jfehlig at suse.com>
> ---
> src/libxl/libxl_conf.c | 22 ++++++++++++++++++----
> 1 file changed, 18 insertions(+), 4 deletions(-)
ACK.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140825/b269d29a/attachment-0001.sig>
More information about the libvir-list
mailing list