alsdec: check block length
authorReinhard Tartler <siretart@tauware.de>
Sun, 8 Dec 2013 18:24:26 +0000 (13:24 -0500)
committerReinhard Tartler <siretart@tauware.de>
Sat, 14 Dec 2013 17:51:40 +0000 (12:51 -0500)
commit3f7d89034bfe50893927cc92ddcb95a2e9b4178d
treee8142a8d962949ae005a734c0754e601f77beb6b
parent718a2ddcb898d8465c6715ac1a6627ca67dc6a22
alsdec: check block length

Fix writing over the end

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Addresses: CVE-2013-0845
(cherry picked from commit 2a0fb7286d67c47e44aa76c237ede117b22af616)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/alsdec.c