Re: [PATCH libvirt-glib 5/5] Ensure domains & pools hash tables in connection are non-NULL

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

 



On Tue, Nov 22, 2011 at 02:22:40PM +0100, Christophe Fergeau wrote:
> Hi,
> 
> I assume without this, it's easy to try to add data to NULL hash tables
> when using the transient domain API you added in this patch series?
> ACK patch, just curious...

Actually the scenario was with persistent domains too

  conn = LibvirtGObject.Connection.new("qemu:///session")
  conn.open(None)
  conn.create_domain(domcfg)

which would SEGV unless you had called  conn.fetch_domains before
conn.create_domain.


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]