History

avformat/ilbc: Check avio_read() for failure

Fixes: use of uninitialized value Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_protocol_memory-6656646223298560-cut

Michael Niedermayer committed 2 years ago

Commit e30d9571 parent 898f6581 file · +2 −1Browse files

Unified · Split

libavformat/ilbc.c+2−1
@@ -61,7 +61,8 @@ static int ilbc_read_header(AVFormatContext *s) · 60 unmodified lines
61 AVStream *st;61 AVStream *st;
62 uint8_t header[9];62 uint8_t header[9];
63 63
64 avio_read(pb, header, 9);64 if (avio_read(pb, header, 9) != 9)
65 return AVERROR_INVALIDDATA;
65 66
66 st = avformat_new_stream(s, NULL);67 st = avformat_new_stream(s, NULL);
67 if (!st)68 if (!st)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t