[FFmpeg-devel] [PATCH 2/3] mlvdec: validate bits_per_coded_sample
Andreas Cadhalpun
andreas.cadhalpun at googlemail.com
Tue Dec 22 19:43:11 CET 2015
On 21.12.2015 02:18, Michael Niedermayer wrote:
> On Sun, Dec 20, 2015 at 12:15:17PM +0100, Andreas Cadhalpun wrote:
>> mlvdec.c | 12 ++++++++++++
>> 1 file changed, 12 insertions(+)
>> 9870daae0ba6a9c826563645319ee38c694025e8 0002-mlvdec-validate-bits_per_coded_sample.patch
>> From 66a3af0c54f0db6b96b0bad7ae7b9bbbd980b830 Mon Sep 17 00:00:00 2001
>> From: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> Date: Sat, 19 Dec 2015 23:45:00 +0100
>> Subject: [PATCH 2/3] mlvdec: validate bits_per_coded_sample
>>
>> A negative bits_per_coded_sample doesn't make sense.
>> If it is too large, the size calculation for av_get_packet overflows,
>> resulting in allocation of a too small buffer.
>>
>> Also make sure width and height are sane.
>
> no more objections from me
Pushed.
Best regards,
Andreas
More information about the ffmpeg-devel
mailing list