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>
Tue, 22 Jan 2013 20:39:56 +0000 (21:39 +0100)
commit49b729d3af8464de431362e6c5b3027102bc2f88
treebcfa92513faaac33281eaf7b3072dced7eea7a64
parentc4274d118b1abfeba248c5f4ef3360f265a6d55f
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>
libavcodec/sanm.c