[FFmpeg-devel] [PATCH] avpacket: fix size check in packet_alloc

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Tue Jan 5 22:40:03 CET 2016


On 05.01.2016 21:39, Michael Niedermayer wrote:
> On Tue, Jan 05, 2016 at 01:05:50PM +0100, Andreas Cadhalpun wrote:
>> The previous check only caught sizes from -AV_INPUT_BUFFER_PADDING_SIZE
>> to -1.
>>
>> This fixes ubsan runtime error: signed integer overflow: 2147483647 + 32
>> cannot be represented in type 'int'
>>
>> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> ---
>>  libavcodec/avpacket.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> LGTM

Pushed.

Best regards,
Andreas



More information about the ffmpeg-devel mailing list