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>
Fri, 3 Oct 2014 17:47:33 +0000 (19:47 +0200)
commit693faadd30c569d772cae2c6702895745348c5bd
tree23109034f5cc2c040e978b456ecab5408584d8fe
parent9806028fbba5dc7a2af6dd5b0a08057180cccc79
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