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

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

commit 7aaf8d16b59237cd30fdc051abe825bab9c6770b
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Mar 20 17:35:51 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue May 5 18:55:10 2026 +0200

    avcodec/escape130: Initialize old_y_avg
    
    Fixes: use of uninitialized memory
    
    Found-by: Carl Sampson <[email protected]>
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit d0761626cf4640d401a8f7eb61e5d071c87de971)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/escape130.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c
index a6fda901de..b7dc3f88d9 100644
--- a/libavcodec/escape130.c
+++ b/libavcodec/escape130.c
@@ -124,7 +124,7 @@ static av_cold int escape130_decode_init(AVCodecContext 
*avctx)
         return AVERROR_INVALIDDATA;
     }
 
-    s->old_y_avg = av_malloc(avctx->width * avctx->height / 4);
+    s->old_y_avg = av_mallocz(avctx->width * avctx->height / 4);
     s->buf1      = av_malloc(avctx->width * avctx->height * 3 / 2);
     s->buf2      = av_malloc(avctx->width * avctx->height * 3 / 2);
     if (!s->old_y_avg || !s->buf1 || !s->buf2) {

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

Reply via email to