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

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

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

commit dfcc4feaaa1f7172344e2ae7aff459c7f1aa9adc
Author:     James Almer <[email protected]>
AuthorDate: Sun Oct 11 11:07:34 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sun Oct 11 11:10:01 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 a437feec3f..d38803397b 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1207,7 +1207,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