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>
Sun, 5 Oct 2014 12:20:32 +0000 (14:20 +0200)
commit42bdcebf3360fca957e8224ff0a6573b05dbc249
treec689b55531cfe4749ed844e76d14bfeabbeca6f5
parentd1e71ecbb01717a636ebcaf927109f75b7e895ec
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