This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.0 in repository ffmpeg.
commit eb25744dd77ef51310427c4d42e65c5d75ab711d Author: Michael Niedermayer <[email protected]> AuthorDate: Sat Sep 5 23:27:34 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Thu Sep 17 01:30:44 2026 +0200 avformat/mov: do not zero a key string before reading it Fixes: OOM Fixes: poc-keys-bigkey-256M.mp4 Fixes: hKO4f7GYoUd0 (cherry picked from commit 3afa5444a38cfd5ec04c2e133da710b95b952f21) Signed-off-by: Michael Niedermayer <[email protected]> --- libavformat/mov.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index be345f5983..1452c8229f 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5511,10 +5511,13 @@ static int mov_read_keys(MOVContext *c, AVIOContext *pb, MOVAtom atom) avio_skip(pb, key_size); continue; } - c->meta_keys[i] = av_mallocz(key_size + 1); + c->meta_keys[i] = av_malloc(key_size + 1); if (!c->meta_keys[i]) return AVERROR(ENOMEM); - avio_read(pb, c->meta_keys[i], key_size); + int ret = ffio_read_size(pb, c->meta_keys[i], key_size); + if (ret < 0) + return ret; + c->meta_keys[i][key_size] = 0; } return 0; -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
