avcodec/zmbv: Check len before reading in decode_frame()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 25 Feb 2015 11:29:10 +0000 (12:29 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 25 Feb 2015 11:30:04 +0000 (12:30 +0100)
commit1f5c7781e63d6519192ada59c1e36bcecc92791d
treea39c5a856e2ceca1fd2fa7c66897a216dcb507f8
parent7296716e355c73650033b57bafe44063d3670117
avcodec/zmbv: Check len before reading in decode_frame()

Fixes out of array read
Fixes: asan_heap-oob_4d4eb0_3994_cov_3169972261_zmbv_15bit.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/zmbv.c