-
- Downloads
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:
Luca Barbato <lu_zero@gentoo.org>
Showing
- libavformat/asfdec.c 3 additions, 1 deletionlibavformat/asfdec.c
- libavformat/avidec.c 4 additions, 1 deletionlibavformat/avidec.c
- libavformat/dxa.c 4 additions, 1 deletionlibavformat/dxa.c
- libavformat/matroskadec.c 4 additions, 1 deletionlibavformat/matroskadec.c
- libavformat/riff.c 5 additions, 1 deletionlibavformat/riff.c
- libavformat/riff.h 1 addition, 1 deletionlibavformat/riff.h
- libavformat/wav.c 8 additions, 2 deletionslibavformat/wav.c
- libavformat/wtv.c 3 additions, 1 deletionlibavformat/wtv.c
- libavformat/xwma.c 4 additions, 1 deletionlibavformat/xwma.c
Loading
Please register or sign in to comment