Commit 51fc0323 authored by bcoudurier's avatar bcoudurier

stop parsing if tag size is wrongly < 8 to avoid infinite loop

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15401 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9c0a53fc
......@@ -1379,7 +1379,7 @@ static int mov_read_udta(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
uint32_t tag = get_le32(pb);
uint64_t next = url_ftell(pb) + tag_size - 8;
if (next > end) // stop if tag_size is wrong
if (tag_size < 8 || next > end) // stop if tag_size is wrong
break;
switch (tag) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment