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 32eb07bb83 avcodec/misc4: reject invalid sample rate
32eb07bb83 is described below

commit 32eb07bb83cac19d0258b52b843becd4cee8d3d9
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun May 31 00:13:59 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Fri Jun 5 01:16:31 2026 +0000

    avcodec/misc4: reject invalid sample rate
    
    Fixes: AVERROR_BUG
    
    Fixes: 
493055111/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MISC4_fuzzer-5752676962074624
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/misc4.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/misc4.c b/libavcodec/misc4.c
index d92c671d1d..af075882f5 100644
--- a/libavcodec/misc4.c
+++ b/libavcodec/misc4.c
@@ -57,6 +57,9 @@ static av_cold int misc4_init(AVCodecContext *avctx)
 {
     MISC4Context *s = avctx->priv_data;
 
+    if (avctx->sample_rate <= 0)
+        return AVERROR_INVALIDDATA;
+
     avctx->sample_fmt = AV_SAMPLE_FMT_S16;
     switch (avctx->sample_rate) {
     case 8000:

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

Reply via email to