Message ID | 20240402031800.7159-1-jamrial@gmail.com |
---|---|
State | Accepted |
Commit | 3d12ba77d9a4660b2e71889d1c2f99e8f3ade98b |
Headers | show |
Series | [FFmpeg-devel,1/3] avformat/mov: take into account the first eight bytes in the keys atom | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/mov.c b/libavformat/mov.c index 2b7ddc516c..3273e2e89b 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5024,6 +5024,7 @@ static int mov_read_keys(MOVContext *c, AVIOContext *pb, MOVAtom atom) avio_skip(pb, 4); count = avio_rb32(pb); + atom.size -= 8; if (count > UINT_MAX / sizeof(*c->meta_keys) - 1) { av_log(c->fc, AV_LOG_ERROR, "The 'keys' atom with the invalid key count: %"PRIu32"\n", count);
Signed-off-by: James Almer <jamrial@gmail.com> --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+)