• Max Horn's avatar
    handle malloc failures in ff_get_wav_header · ca402f32
    Max Horn authored
    
    
    ff_get_wav_header is reading data from a WAVE file and then uses it
    (without validation) to malloc a buffer. It then proceeded to read
    data into the buffer, without verifying that the allocation succeeded.
    
    To address this, change ff_get_wav_header to return an error if
    allocation failed, and adapted all calling code to handle that error.
    Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
    ca402f32
xwma.c 8.72 KB