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
6161 AVStream *st;
6262 uint8_t header[9];
6363
64− avio_read(pb, header, 9);
64+ if (avio_read(pb, header, 9) != 9)
65+ return AVERROR_INVALIDDATA;
6566
6667 st = avformat_new_stream(s, NULL);
6768 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