Fixes: use of uninitialized value Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_protocol_memory-6656646223298560-cut
Unified · Split
| @@ -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) |