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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 8ac6325143 avcodec/adpcm: check block_align for PSXC
8ac6325143 is described below

commit 8ac6325143958373bd415b75e44d56d62d2cc802
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Dec 22 18:30:52 2025 +0100
Commit:     James Almer <[email protected]>
CommitDate: Wed Dec 24 02:51:20 2025 +0000

    avcodec/adpcm: check block_align for PSXC
    
    Fixes: division by 0
    Fixes: 
457634826/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_PSXC_DEC_fuzzer-4903668521697280
    
    Found-by:  continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/adpcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 72fbb841a4..3da0791ba3 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -294,7 +294,7 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx)
         break;
     case AV_CODEC_ID_ADPCM_PSXC:
         max_channels = 8;
-        if (avctx->ch_layout.nb_channels <= 0)
+        if (avctx->ch_layout.nb_channels <= 0 || avctx->block_align <= 0)
             return AVERROR_INVALIDDATA;
         break;
     case AV_CODEC_ID_ADPCM_IMA_DAT4:

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

Reply via email to