Re: [FFmpeg-devel] [PATCH] vdpau: Fix buffer overflow with old hwaccel_context API

2017-09-22 Thread wm4
On Fri, 8 Sep 2017 21:08:13 +0200 Błażej Szczygieł wrote: > VDPAUHWContext struct is used internally, so allocate required amount > of memory. Also move hwctx->reset as it was prior to > 7e4ba776a2240d40124d5540ea6b2118fa2fe26a to make sure that buffer > overflow doesn't happen if

[FFmpeg-devel] [PATCH] vdpau: Fix buffer overflow with old hwaccel_context API

2017-09-08 Thread Błażej Szczygieł
VDPAUHWContext struct is used internally, so allocate required amount of memory. Also move hwctx->reset as it was prior to 7e4ba776a2240d40124d5540ea6b2118fa2fe26a to make sure that buffer overflow doesn't happen if application allocates only sizeof(AVVDPAUContext) bytes of memory. ---