avcodec/cinepak: fix integer underflow
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 17:33:01 +0000 (19:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 21:52:29 +0000 (23:52 +0200)
commit71f0a3c4adcf86303ed53696a70bb7398ae63c69
tree5e8499d52fceda00c79c8645880557f8f3f5daca
parentd9bef14e41a49b3ea2be407d02f0fe8d4c4a92eb
avcodec/cinepak: fix integer underflow

Fixes out of array access
Fixes: asan_heap-oob_4da0ba_6_asan_heap-oob_4da0ba_241_cvid_crash.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e7e5114c506957f40aafd794e06de1a7e341e9d5)

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