avcodec/ansi: fix integer overflow
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 17 Feb 2014 19:49:42 +0000 (20:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 7 Mar 2014 03:04:07 +0000 (04:04 +0100)
commitff5647b253f89e6f31882d1ae91563ff9376dd31
tree91648ebf4b837ae796b6a67688052932bc0b6f2e
parent0c58c165ab51260ba2e6cb606b8057a7c9783ef3
avcodec/ansi: fix integer overflow

Fixes out of array read
Fixes: 5f9698e86d92f19bb08d54ff0d57027f-signal_sigsegv_b30756_3795_cov_2693691257_ansi256.ans
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d42ec8433c687fcbccefa51a7716d81920218e4f)

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