This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/8.1
in repository ffmpeg.

The following commit(s) were added to refs/heads/release/8.1 by this push:
     new 46d899d7a0 avformat/mov: check ff_mov_read_chnl return value
46d899d7a0 is described below

commit 46d899d7a02bc63237472cc4897258d5ddf274ac
Author:     James Almer <[email protected]>
AuthorDate: Sun Oct 11 11:07:34 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sun Oct 11 11:11:53 2026 -0300

    avformat/mov: check ff_mov_read_chnl return value
    
    Fixes use of uninitialized value.
    Fixes issue #24960.
    
    Signed-off-by: James Almer <[email protected]>
---
 libavformat/mov.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index e998a01ef2..2941455937 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1243,7 +1243,11 @@ static int mov_read_chnl(MOVContext *c, AVIOContext *pb, 
MOVAtom atom)
         return 0;
     }
 
-    ff_mov_read_chnl(c->fc, pb, st);
+    ret = ff_mov_read_chnl(c->fc, pb, st);
+    if (ret < 0) {
+        avio_seek(pb, end, SEEK_SET);
+        return 0;
+    }
 
     if (avio_tell(pb) != end) {
         av_log(c->fc, AV_LOG_WARNING, "skip %" PRId64 " bytes of unknown data 
inside chnl\n",

-- 
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]

Reply via email to