mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 21:14:47 +00:00
avformat/ilbc: Check avio_read() for failure
Fixes: use of uninitialized value Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_protocol_memory-6656646223298560-cut Found-by: ossfuzz Reported-by: Kacper Michajlow Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
898f6582eb
commit
e30d957a9b
@ -61,7 +61,8 @@ static int ilbc_read_header(AVFormatContext *s)
|
||||
AVStream *st;
|
||||
uint8_t header[9];
|
||||
|
||||
avio_read(pb, header, 9);
|
||||
if (avio_read(pb, header, 9) != 9)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
st = avformat_new_stream(s, NULL);
|
||||
if (!st)
|
||||
|
Loading…
Reference in New Issue
Block a user