[libvirt] [libvirt-glib] gconfig: Add precondition checks to some public entry points

Daniel P. Berrange berrange at redhat.com
Mon Jun 1 09:59:14 UTC 2015


On Mon, Jun 01, 2015 at 11:34:36AM +0200, Christophe Fergeau wrote:
> It's currently possible to trigger a crash by passing eg NULL to these
> functions. Better to return a prominent warning to the caller without
> crashing.
> ---
>  libvirt-gconfig/libvirt-gconfig-domain.c | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)

ACK


Regards,
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