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

Git pushed a commit to branch master
in repository ffmpeg.

commit c896bbb24535685509a816af09665cb73bf2d0c7
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 3 04:29:14 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Thu Nov 5 22:51:06 2026 +0000

    avcodec/tiertexseqv: check the RLE block unpacking before copying the block
    
    Fixes: V9Z2ZdGQsUo6
    Fixes: AISLE-2026-0150-00048
    Fixes: use of uninitialized memory
    Use of uninitialized memory Replicated through UnModified FFmpeg with MSAN
    
    Found-by: Joshua Rogers (AISLE)
---
 libavcodec/tiertexseqv.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/tiertexseqv.c b/libavcodec/tiertexseqv.c
index 31acc9b438..9a7eb70ee8 100644
--- a/libavcodec/tiertexseqv.c
+++ b/libavcodec/tiertexseqv.c
@@ -92,6 +92,8 @@ static const unsigned char *seq_decode_op1(SeqVideoContext 
*seq,
         switch (len & 3) {
         case 1:
             src = seq_unpack_rle_block(src, src_end, block, sizeof(block));
+            if (!src)
+                return NULL;
             for (b = 0; b < 8; b++) {
                 memcpy(dst, &block[b * 8], 8);
                 dst += seq->frame->linesize[0];
@@ -99,6 +101,8 @@ static const unsigned char *seq_decode_op1(SeqVideoContext 
*seq,
             break;
         case 2:
             src = seq_unpack_rle_block(src, src_end, block, sizeof(block));
+            if (!src)
+                return NULL;
             for (i = 0; i < 8; i++) {
                 for (b = 0; b < 8; b++)
                     dst[b * seq->frame->linesize[0]] = block[i * 8 + b];

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