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

Git pushed a commit to branch master
in repository ffmpeg.

commit 695b89c675ada6b40d0e35aeef5233c930b95dce
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 18:52:51 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Thu Nov 12 17:36:16 2026 +0000

    avcodec/iff: clear the HAM palette table
    
    Fixes: use of uninitialized memory
    Fixes: zPQwovKkiM2r
    Fixes: pbm-ham4-pixel-ff.iff
    Use of uninitialized memory Replicated through UnModified FFmpeg with MSAN
    
    Found during triage of the security report dLFZWeypJpSK
---
 libavcodec/iff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/iff.c b/libavcodec/iff.c
index 169cda28e0..329a2d9ce3 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -284,7 +284,7 @@ static int extract_header(AVCodecContext *const avctx,
             return AVERROR(ENOMEM);
 
         ham_count = 8 * (1 << s->ham);
-        s->ham_palbuf = av_malloc(extra_space * (ham_count << !!(s->masking == 
MASK_HAS_MASK)) * sizeof (uint32_t) + AV_INPUT_BUFFER_PADDING_SIZE);
+        s->ham_palbuf = av_mallocz(extra_space * (ham_count << !!(s->masking 
== MASK_HAS_MASK)) * sizeof (uint32_t) + AV_INPUT_BUFFER_PADDING_SIZE);
         if (!s->ham_palbuf)
             return AVERROR(ENOMEM);
 

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