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

Git pushed a commit to branch release/5.1
in repository ffmpeg.

commit 5180e5c62d461e93557e1126148844c5282c81c5
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Jun 21 01:02:36 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 21 02:56:27 2026 +0200

    avcodec/iff: Clear ham_buf
    
    ham_buf was read uninitialized in some code paths.
    
    (cherry picked from commit 7d62dfda4c... adapted to 5.1 context)
    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 dd652a14c1..25d31a87b6 100644
--- a/libavcodec/iff.c
+++ b/libavcodec/iff.c
@@ -337,7 +337,7 @@ static int extract_header(AVCodecContext *const avctx,
             if (avctx->codec_tag == MKTAG('P', 'B', 'M', ' ') && s->ham == 4)
                 extra_space = 4;
 
-            s->ham_buf = av_malloc((s->planesize * 8) + 
AV_INPUT_BUFFER_PADDING_SIZE);
+            s->ham_buf = av_mallocz((s->planesize * 8) + 
AV_INPUT_BUFFER_PADDING_SIZE);
             if (!s->ham_buf)
                 return AVERROR(ENOMEM);
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to