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>
Mon, 17 Feb 2014 19:50:33 +0000 (20:50 +0100)
commitd42ec8433c687fcbccefa51a7716d81920218e4f
treec5e13b5a1949261064ca869cb79534be79d2c448
parent911eb71133839485aae6df029015790cfd2b26cc
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>
libavcodec/ansi.c