sanm: Check decoded_size.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Jan 2013 23:27:10 +0000 (00:27 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Jan 2013 23:27:59 +0000 (00:27 +0100)
commit7357ca900efcf829de4cce4cec6ddc286526d417
treea90983bc14b9f933e120572ea4d547e7a101b690
parent31cd1e20bbd55f3680e0417d8f3edcd8f7ac6a82
sanm: Check decoded_size.

This prevents a buffer overflow in rle_decode()

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