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

Git pushed a commit to branch master
in repository ffmpeg.

commit 201a2994d335bcad09202f63fca6cfc3425c64e2
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 3 15:49:23 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Thu Nov 5 22:51:06 2026 +0000

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