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 a58cb16e27 Fix overflow in STSD parser
a58cb16e27 is described below

commit a58cb16e27bc0c32906cfb3de36e4a495c0a8602
Author:     Ted Meyer <[email protected]>
AuthorDate: Tue Feb 3 16:31:50 2026 -0800
Commit:     michaelni <[email protected]>
CommitDate: Mon Feb 9 02:38:16 2026 +0000

    Fix overflow in STSD parser
    
    Reset `sc->stsd_count` before parsing entries. This number doesn't get
    reset, which means that multiple parse passes can increment it past the
    `sc->extradata` array end and cause OOB writes.
---
 libavformat/mov.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index d19b213ffa..1a4450153f 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3258,6 +3258,7 @@ fail:
             av_freep(&sc->extradata[j]);
     }
 
+    sc->stsd_count = 0;
     av_freep(&sc->extradata);
     av_freep(&sc->extradata_size);
     return ret;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to