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 4e6eabd9ac128e6a835b96c5b7ad02ca923f45a0
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Aug 4 22:32:31 2024 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Jun 21 17:59:33 2026 +0200

    avcodec/alsdec: clear last_acf_mantissa
    
    Fixes: use-of-uninitialized-value
    Fixes: 
70869/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5476567461986304
    
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit db843c8910781eb72a4658780283ef4e2da4591d)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/alsdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index e29d8508e1..dbfc0c01a5 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -2118,7 +2118,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
         ctx->acf               = av_malloc_array(avctx->channels, 
sizeof(*ctx->acf));
         ctx->shift_value       = av_calloc(avctx->channels, 
sizeof(*ctx->shift_value));
         ctx->last_shift_value  = av_calloc(avctx->channels, 
sizeof(*ctx->last_shift_value));
-        ctx->last_acf_mantissa = av_malloc_array(avctx->channels, 
sizeof(*ctx->last_acf_mantissa));
+        ctx->last_acf_mantissa = av_calloc(avctx->channels, 
sizeof(*ctx->last_acf_mantissa));
         ctx->raw_mantissa      = av_mallocz_array(avctx->channels, 
sizeof(*ctx->raw_mantissa));
 
         ctx->larray = av_malloc_array(ctx->cur_frame_length * 4, 
sizeof(*ctx->larray));

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

Reply via email to