]> xenbits.xensource.com Git - libvirt.git/commit
storage: avoid null deref on qemu-img failure
authorEric Blake <eblake@redhat.com>
Fri, 21 Oct 2011 21:34:34 +0000 (15:34 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 26 Oct 2011 16:58:00 +0000 (10:58 -0600)
commitc04beb5d3aa187b4bcbb31152a93299c2265a00d
treecb32efac2ca2644ae505a1e524c369865ea65c01
parent2dee8965933db824084672e3d012f58ebe2e07c6
storage: avoid null deref on qemu-img failure

Detected by Coverity.  Only possible if qemu-img gives bogus output,
but we might as well be robust.

* src/storage/storage_backend.c
(virStorageBackendQEMUImgBackingFormat): Check for strstr failure.
src/storage/storage_backend.c