• Michael Niedermayer's avatar
    avformat/mvdec: Check size in read_table() for validity · f1c21a20
    Michael Niedermayer authored
    This check is redundant with the previous commit but it provides
    better error messages and feedback while the previous commit
    ensures that var_read_string() doesnt return uninitialized arrays
    if it itself is feeded with an invalid size possibly through a
    different future codepath.
    
    Fixes: asan_heap-oob_49b1e5_12_011.movie
    Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    f1c21a20
mvdec.c 15.3 KB