Skip to content
Snippets Groups Projects
Commit ca402f32 authored by Max Horn's avatar Max Horn Committed by Luca Barbato
Browse files

handle 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, 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>
parent ad4c5034
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment