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

Git pushed a commit to branch master
in repository ffmpeg.

commit 2e8af63df16ec13509c055d6e23340d1d98af120
Author:     Romain Beauxis <[email protected]>
AuthorDate: Sun Nov 22 17:42:27 2026 -0500
Commit:     Romain Beauxis <[email protected]>
CommitDate: Wed Nov 25 14:34:52 2026 +0000

    avformat/ogg/muxer: check the Theora header size before reading the new 
frame rate
    
    The frame rate of a new link is read from its identification header,
    which can be shorter than the fields read. Such a header is then rejected
    when the new link is initialized.
---
 libavformat/ogg/muxer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/ogg/muxer.c b/libavformat/ogg/muxer.c
index 73790d52a1..98a49fbd53 100644
--- a/libavformat/ogg/muxer.c
+++ b/libavformat/ogg/muxer.c
@@ -710,7 +710,8 @@ static int ogg_theora_rate_changed(const AVStream *st, 
const uint8_t *extradata,
     int header_len[3];
 
     if (size > INT_MAX ||
-        avpriv_split_xiph_headers(extradata, size, 42, header, header_len) < 0)
+        avpriv_split_xiph_headers(extradata, size, 42, header, header_len) < 0 
||
+        header_len[0] < 42)
         return 0;
     return av_cmp_q(st->time_base,
                     (AVRational){ AV_RB32(header[0] + 26), AV_RB32(header[0] + 
22) }) != 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]

Reply via email to