[libvirt] [libvirt-sandbox][PATCH 3/4] libvirt-sandbox-config: Don't deref NULL

Daniel P. Berrange berrange at redhat.com
Wed Sep 23 09:20:11 UTC 2015


On Wed, Sep 23, 2015 at 11:15:23AM +0200, Michal Privoznik wrote:
> The problem is in gvir_sandbox_config_add_mount_opts. When
> parsing disk string, "format=" may be within it. This is
> supposed to change disk format from raw to the desired one.
> However, due to bug in our implementation, we may end up
> dereferencing a NULL pointer.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  libvirt-sandbox/libvirt-sandbox-config.c | 15 ++++++++-------
>  1 file changed, 8 insertions(+), 7 deletions(-)

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