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

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

commit 56e14d84252b4308f0d7871f947fec384b598ef5
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 3 15:49:23 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 02:43:09 2026 +0100

    avcodec/tiertexseqv: keep the block pointer within the block
    
    A code table whose lengths add up to more than the block size advanced
    dst and dst_size past the end of the block. The copies were already
    limited to the block, so no memory was written out of bounds, but forming
    a pointer beyond one past the end of an array is undefined behaviour.
    
    This is not a security issue.
    
    (cherry picked from commit 201a2994d335bcad09202f63fca6cfc3425c64e2)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/tiertexseqv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/tiertexseqv.c b/libavcodec/tiertexseqv.c
index c3fee8f0a0..705041457a 100644
--- a/libavcodec/tiertexseqv.c
+++ b/libavcodec/tiertexseqv.c
@@ -69,6 +69,7 @@ static const unsigned char *seq_unpack_rle_block(const 
unsigned char *src,
             memcpy(dst, src, FFMIN(len, dst_size));
             src += len;
         }
+        len = FFMIN(len, dst_size);
         dst += len;
         dst_size -= len;
     }

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