avformat/mov: check extent_offset calculation for overflow
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b44758d8e4
commit
fbe52bd65c
@ -8104,7 +8104,8 @@ static int mov_read_iloc(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
}
|
||||
for (int j = 0; j < extent_count; j++) {
|
||||
if (rb_size(pb, &extent_offset, offset_size) < 0 ||
|
||||
rb_size(pb, &extent_length, length_size) < 0)
|
||||
rb_size(pb, &extent_length, length_size) < 0 ||
|
||||
base_offset > INT64_MAX - extent_offset)
|
||||
return AVERROR_INVALIDDATA;
|
||||
if (offset_type == 1)
|
||||
c->heif_item[i].is_idat_relative = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user