mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-06 23:31:13 +00:00
avformat/mov: Check if hoov is at the end
Fixes: Timeout, probably infinite loop Fixes: 26559/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5391165484171264 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
ad20a4f92b
commit
0afbaabdca
@ -7006,6 +7006,8 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
uint32_t type;
|
uint32_t type;
|
||||||
avio_skip(pb, 4);
|
avio_skip(pb, 4);
|
||||||
type = avio_rl32(pb);
|
type = avio_rl32(pb);
|
||||||
|
if (avio_feof(pb))
|
||||||
|
break;
|
||||||
avio_seek(pb, -8, SEEK_CUR);
|
avio_seek(pb, -8, SEEK_CUR);
|
||||||
if (type == MKTAG('m','v','h','d') ||
|
if (type == MKTAG('m','v','h','d') ||
|
||||||
type == MKTAG('c','m','o','v')) {
|
type == MKTAG('c','m','o','v')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user