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

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

commit c9e4cdbad72e09d1cd146f3cfaa9743aa587d40c
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 6 07:33:05 2026 +0200
Commit:     Romain Beauxis <[email protected]>
CommitDate: Sat Oct 31 22:14:13 2026 +0000

    avformat/oggenc: Reset the current page when it cannot be buffered
    
    On allocation failure the full page stayed in the stream context, and
    the next segment was added past its 255 entry segment table.
    
    Fixes: out of array access
    Fixes: flOsaBhTFc6F
    Fixes: AISLE-2026-0111-00072
    Negative size memset Replicated through API with ASAN and av_max_alloc() 
lowered after the header
    Found-by: Joshua Rogers <[email protected]>
    
    (cherry picked from commit 6d40aa17395aaba80922441bcfb58399a88475e3)
---
 libavformat/oggenc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 605c9d20e1..84d1705e90 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -201,8 +201,10 @@ static int ogg_buffer_page(AVFormatContext *s, 
OGGStreamContext *oggstream)
     OGGPageList **p = &ogg->page_list;
     OGGPageList *l = av_mallocz(sizeof(*l));
 
-    if (!l)
+    if (!l) {
+        ogg_reset_cur_page(oggstream);
         return AVERROR(ENOMEM);
+    }
     l->page = oggstream->page;
 
     oggstream->page.start_granule = ogg_granule_to_timestamp(oggstream, 
oggstream->page.granule);

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