This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new a7d42bfba8 avformat/mov: Limit maximum box size for mov_read_lhvc()
a7d42bfba8 is described below
commit a7d42bfba8bbdfd028f930ca24fc7afc8150bef4
Author: Dale Curtis <[email protected]>
AuthorDate: Wed Apr 22 20:19:02 2026 +0000
Commit: James Almer <[email protected]>
CommitDate: Thu Apr 30 22:50:51 2026 +0000
avformat/mov: Limit maximum box size for mov_read_lhvc()
Signed-off-by: Dale Curtis <[email protected]>
---
libavformat/mov.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 12fb00be59..ff687fb18c 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -8683,8 +8683,10 @@ static int mov_read_lhvc(MOVContext *c, AVIOContext *pb,
MOVAtom atom)
// TODO: handle lhvC when present before hvcC
return 0;
- if (atom.size < 6 || st->codecpar->extradata_size < 23)
+ if (atom.size < 6 || st->codecpar->extradata_size < 23 ||
+ atom.size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) {
return AVERROR_INVALIDDATA;
+ }
buf = av_malloc(atom.size + AV_INPUT_BUFFER_PADDING_SIZE);
if (!buf)
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]