The attached patch handles malloc failures in ff_get_wav_header.

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, I changed ff_get_wav_header to return an error if allocation 
failed, and adapted all calling code to handle that error.

This patch assumes that my xWMA patch has been applied, but it is trivial to 
apply it before that, too (in that case, just ignore the change to xwma.c).

Cheers,
Max

Attachment: 0002-handle-malloc-failures-in-ff_get_wav_header.patch
Description: Binary data

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to