• Anton Khirnov's avatar
    mss12: validate display dimensions · 6755eb5b
    Anton Khirnov authored
    The code currently reads the coded dimensions from the extradata, but
    expects the display dimensions to be set by the caller, and does not
    check that they are compatible (i.e. that the displayed size is smaller
    than the coded size).
    
    Make sure that when the display dimensions are set, they are also valid.
    Fixes possible invalid memory access.
    
    CC: libav-stable@libav.org
    Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    6755eb5b
mss12.c 20.8 KB