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

Daniel P. Berrange berrange at redhat.com
Tue Nov 22 13:46:41 UTC 2011


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




More information about the libvir-list mailing list