avformat/mov: add an EOF check in IPRP
Fixes: Timeout Fixes: 69230/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-6540512101203968 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
55af81b5a4
commit
586f6fda1d
1 changed files with 5 additions and 0 deletions
|
|
@ -8938,6 +8938,11 @@ static int mov_read_iprp(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||
int item_id = version ? avio_rb32(pb) : avio_rb16(pb);
|
||||
int assoc_count = avio_r8(pb);
|
||||
|
||||
if (avio_feof(pb)) {
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
for (int j = 0; j < assoc_count; j++) {
|
||||
MOVAtoms *ref;
|
||||
int index = avio_r8(pb) & 0x7f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue