[libvirt] [PATCH 01/13] qemu: fix use-after-free when parsing NBD disk

Eric Blake eblake at redhat.com
Thu Feb 28 05:07:30 UTC 2013


On 02/27/2013 10:03 PM, Eric Blake wrote:
> So there is definitely a use-after-free bug fixed by your patch.
> However, your patch causes a double-free bug on error (if the

Rather, your patch did nothing to address the pre-existing double-free
bug on error.  Guess I should be more careful when pinning the blame :)

> strdup(port) fails, then disk->hosts->port and disk->src are the same
> pointer, but we attempt to free both of them).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130227/45d26662/attachment-0001.sig>


More information about the libvir-list mailing list