[libvirt] [PATCH] stream: avoid use-after-free

Eric Blake eblake at redhat.com
Sat May 14 15:09:13 UTC 2011


On 05/14/2011 02:20 AM, Matthias Bolte wrote:
> 2011/5/13 Eric Blake <eblake at redhat.com>:
>> virFDStreamClose used a mutex after it was freed, and failed
>> to destroy that mutex on its last use.
>>
>> * src/fdstream.c (virFDStreamFree): Inline into sole caller...
>> (virFDStreamClose): ...to avoid use-after-free and leak.
>> Reported by Matthias Bolte.
>> ---
>>  src/fdstream.c |   34 ++++++++++++++--------------------
>>  1 files changed, 14 insertions(+), 20 deletions(-)
>>
> 
> ACK.

Thanks for the review; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list