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>
Sun, 21 Dec 2014 03:40:35 +0000 (04:40 +0100)
commit24fefa73dba44d07b4cef8b6243cfa37f6ec3e54
treeffbe360a4883d5a302eaec9467b690f3b3445488
parent9189ae8ff4b74984775850cdae72dc833f401867
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)

Conflicts:

libavcodec/vmdav.c
libavcodec/vmdav.c