sanm: Check dimensions before use
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 7 May 2013 19:58:27 +0000 (21:58 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 7 May 2013 19:59:05 +0000 (21:59 +0200)
commit9dd04f6d8cdd1c10c28b2cb4252c1a41df581915
tree9b86acc6559c9c5b20910a23e5f356c13d8e3f00
parentad002e1a13a8df934bd6cb2c84175a4780ab8942
sanm: Check dimensions before use

Fixes integer overflow and out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/sanm.c