avcodec/vmdvideo: Check len before using it in method 3
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Dec 2014 15:24:55 +0000 (16:24 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Dec 2014 18:38:08 +0000 (19:38 +0100)
commit195e8ecacc8b81b71e86d283ce7742bbdc230826
tree58317f7eed553c9a1ab2bbe90db66d54349e6a82
parenta4ffcf024e99fa4d8410883c1d1d9946e423bf0b
avcodec/vmdvideo: Check len before using it in method 3

Fixes out of array access
Fixes: asan_heap-oob_4d23ba_91_cov_3853393937_128.vmd

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

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