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>
Mon, 28 Jan 2013 00:57:39 +0000 (01:57 +0100)
commitf4fb841ad13bab66d4fb0c7ff2a94770df7815d8
tree1ca3d9d7b4d7b915c6119c2faf9002a12a369190
parentc2d11275f7cf34d69a033235d26fd45aab96d5e9
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