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>
Sat, 8 Mar 2014 15:25:20 +0000 (16:25 +0100)
commitd7071f676571465a0fccf41d265cc4f59ec89b92
treee1547a5094c52891a8cc7b8b9f1c1934c160713c
parent54b61181ed55ab38034520eb27d18cf8a2d3732e
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