avformat/mvdec: Check size for validity in var_read_string()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 28 Oct 2014 15:42:05 +0000 (16:42 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 28 Oct 2014 16:06:16 +0000 (17:06 +0100)
commit86e574928536ee5249d9cf4da9f5d8714611d706
tree001f3b84a58c46f706b1bd656a61643349818db9
parente70312dfc22c4e54d5716f28f28db8f99c74cc90
avformat/mvdec: Check size for validity in var_read_string()

Fixes out of array read
Fixes: asan_heap-oob_49b1e5_12_011.movie
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mvdec.c