sanm: check image dimensions before using them
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Jan 2013 20:30:20 +0000 (21:30 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 7 Feb 2013 00:00:01 +0000 (01:00 +0100)
commit8eda88868399de00806cf21a966d9660db4ae9b4
tree1f22836f104f65d86a8d85fc990f8134c4bcb251
parentf3144b0cc69490fa81d1f499e24d4b0bc1c63c0e
sanm: check image dimensions before using them

Avoids integer overflows 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 49b729d3af8464de431362e6c5b3027102bc2f88)

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