[MPlayer-dev-eng] [PATCH] fix use-after-free in vo_vdpau
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Oct 15 08:24:03 CEST 2013
On 14.10.2013, at 22:01, Alexander Strasser <eclipse7 at gmx.net> wrote:
> Hi,
>
> On 2013-10-14 19:56 +0400, Rinat Ibragimov wrote:
>> Hi, I've faced use-after-free in vo_vdpau.c. The issue may arise when one switches to
>> next video in playlist. Here is a patch that should prevent that.
>
> keeping allocated arrays and associated size fields in sync,
> seems like a good idea to me. Beware I didn't read the code
> closely so there might well be more underlying problems.
Since the pointers are set to NULL I can't see how a use-after-free would happen, a valgrind log would help.
More information about the MPlayer-dev-eng
mailing list