Re: [PATCH] libxl: fix memory corruption introduced by commit b55cc5f4e

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
> ---
>  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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]