[FFmpeg-devel] [PATCH] ffplay: fix sws_scale possible out of bounds array access

Marton Balint cus at passwd.hu
Sun Dec 11 00:39:25 EET 2016


On Sat, 10 Dec 2016, Michael Niedermayer wrote:

> On Sat, Dec 10, 2016 at 01:06:59PM +0100, Marton Balint wrote:
>> As I used simple RGBA formats for subtitles and for the video texture if
>> avfilter is disabled I kind of assumed that sws_scale won't access data
>> pointers and strides above index 0, but apparently that is not the case.
>>
>> Fixes Coverity CID 1396737, 1396738, 1396739, 1396740.
>>
>> Signed-off-by: Marton Balint <cus at passwd.hu>
>> ---
>>  ffplay.c | 16 ++++++++--------
>>  1 file changed, 8 insertions(+), 8 deletions(-)
>
> LGTM
>
> thx
>
> also please backport to the releases
>

Pushed to master and 3.2. 3.1 and before is using the SDL1 version which 
is not affected.

Thanks,
Marton


More information about the ffmpeg-devel mailing list