alsdec: validate time diff index
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 18 Apr 2015 18:09:28 +0000 (20:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 25 Apr 2015 13:06:54 +0000 (15:06 +0200)
commit3bd7aa46601ada27c8051b7dd0cef168ff4a2206
tree992185f4736d9f13366790eab1b1234239175e69
parent4c20249c86e1c0cc9aea2261758f477820b1456b
alsdec: validate time diff index

If begin is smaller than t, the subtraction 'begin -= t' wraps around,
because begin is unsigned. The same applies for end < t.

This causes segmentation faults.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit faf9fe2c224ea81a98afd53e2f0be0a2e13aeca9)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/alsdec.c