Re: [PATCH] conf: Fix crash with cleanup

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

 



On Tue, Oct 16, 2012 at 11:19:55AM +0200, Martin Kletzander wrote:
> There was a crash possible when both <boot dev... and <boot
> order... were specified due to virDomainDefParseBootXML() erroring out
> before setting *tmp (which was free'd in cleanup).  As a fix, I
> created this cleanup that uses one pointer for all the temporary
> stored XPath strings and values, plus this pointer is correctly
> initialized to NULL.
> ---
>  src/conf/domain_conf.c | 21 ++++++++++-----------
>  1 file changed, 10 insertions(+), 11 deletions(-)

It would be nice to have a test to check for this scenario

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
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]