[FFmpeg-devel] [libav-devel] [PATCH] alsdec: validate time diff index

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Apr 18 22:39:01 CEST 2015


On 18.04.2015 21:55, Luca Barbato wrote:
> On 18/04/15 18:58, Andreas Cadhalpun wrote:
>> If begin is smaller than t, the subtraction 'begin -= t' wraps around,
>> because begin is unsigned. The same applies for end < t.
> 
> Why that variable is unsigned?

Probably because it should never be negative.

>> This causes segmentation faults.
> 
> Do you have a sample to trigger it?

Yes, several.

Best regards,
Andreas



More information about the ffmpeg-devel mailing list