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>
Mon, 13 May 2013 23:30:11 +0000 (01:30 +0200)
commit813b3d11e0286b1d656633cd5717f3f43db5d1ac
tree32873c01b217dfd3f2e96bd361f8f321c2029751
parent29ff1a5f1a013cd25f34fe8987877c55ad82cac7
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>
(cherry picked from commit 9dd04f6d8cdd1c10c28b2cb4252c1a41df581915)

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