[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



2011/5/13 Eric Blake <eblake 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.

Matthias


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]