alsdec: check block length
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Dec 2012 11:28:45 +0000 (12:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 7 Feb 2013 00:00:02 +0000 (01:00 +0100)
commit6df0d3e2916c223dbe4262bf1b876dff1cb3f980
tree8f1b4b60a6e77dee92937c6054af55c06bafe239
parent85a14dbd5dca34320f58b1ba11dd6dd0df4fb3be
alsdec: check block length

Fix writing over the end

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0ceca269b66ec12a23bf0907bd2c220513cdbf16)

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