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

    avcodec/iff: allocate the plane buffer zeroed
    
    Fixes: use of uninitialized memory
    Fixes: FPOEGUObScuK
    Fixes: ilbm-vdat-missing.iff
    Use of uninitialized memory Replicated through UnModified FFmpeg with MSAN
    
    Found during triage of the security report dLFZWeypJpSK
    
    (cherry picked from commit fa8919fd4ad74912316f294716486ef24af97a93)
    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 329a2d9ce3..71cc8b3c33 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -371,7 +371,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
     if ((err = av_image_check_size(avctx->width, avctx->height, 0, avctx)))
         return err;
     s->planesize = FFALIGN(avctx->width, 16) >> 3; // Align plane size in bits 
to word-boundary
-    s->planebuf  = av_malloc(s->planesize * avctx->height + 
AV_INPUT_BUFFER_PADDING_SIZE);
+    s->planebuf  = av_mallocz(s->planesize * avctx->height + 
AV_INPUT_BUFFER_PADDING_SIZE);
     if (!s->planebuf)
         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