This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.0 in repository ffmpeg.
commit eab148d446afce6283749714f1ff2c048c1a6d34 Author: Michael Niedermayer <[email protected]> AuthorDate: Sun May 31 00:13:59 2026 +0200 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Jun 14 04:59:10 2026 +0200 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]> (cherry picked from commit 32eb07bb83cac19d0258b52b843becd4cee8d3d9) 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 ba79b95efe..fa15b7bf4a 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]
