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 16fa81fb7210012b49adc085c8edc74b05773673
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 18:52:51 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 21:19:57 2026 +0100

    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
    
    (cherry picked from commit 695b89c675ada6b40d0e35aeef5233c930b95dce)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 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