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

Git pushed a commit to branch master
in repository ffmpeg.

commit db98784a72600a94f7ebd5f016a37e01a505c27b
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 3 02:15:38 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Thu Nov 5 22:59:52 2026 +0000

    avcodec/mlz: reject string codes beyond the dictionary
    
    Use of uninitialized memory Replicated through UnModified FFmpeg with MSAN
    Use of uninitialized memory Replicated through API with MSAN
    
    Fixes: use of uninitialized memory
    Fixes: ln0NC22XPto3
    Fixes: AISLE-2026-0150-00420
    
    Found-by: Joshua Rogers (AISLE)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/mlz.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/mlz.c b/libavcodec/mlz.c
index 5176366439..df994af4b4 100644
--- a/libavcodec/mlz.c
+++ b/libavcodec/mlz.c
@@ -159,6 +159,10 @@ int ff_mlz_decompression(MLZ* mlz, GetBitContext* gb, int 
size, unsigned char *b
                     mlz->bump_code = mlz->current_dic_index_max - 1;
                 } else {
                     if (string_code >= mlz->next_code) {
+                        if (string_code > mlz->next_code || last_string_code 
== CODE_UNSET) {
+                            av_log(mlz->context, AV_LOG_ERROR, "String code %d 
is not in the dictionary\n", string_code);
+                            return output_chars;
+                        }
                         int ret = decode_string(mlz, &buff[output_chars], 
last_string_code, &char_code, size - output_chars);
                         if (ret < 0 || ret > size - output_chars) {
                             av_log(mlz->context, AV_LOG_ERROR, "output chars 
overflow\n");

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