This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit beb7c06a7f9ffd34221462e50fe35a6d1f67b1a1 Author: Michael Niedermayer <[email protected]> AuthorDate: Fri Sep 18 00:18:46 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Sat Sep 19 19:23:02 2026 +0000 avfilter/af_chorus: reject speeds above the sample rate Fixes: out of array read Fixes: undefined float to int conversion Found during review of the security report MPROjGMydv4r Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/af_chorus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_chorus.c b/libavfilter/af_chorus.c index 348261a749..fbfc267433 100644 --- a/libavfilter/af_chorus.c +++ b/libavfilter/af_chorus.c @@ -175,7 +175,12 @@ static int config_output(AVFilterLink *outlink) int samples = (int) ((s->delays[n] + s->depths[n]) * outlink->sample_rate / 1000.0); int depth_samples = (int) (s->depths[n] * outlink->sample_rate / 1000.0); - s->length[n] = outlink->sample_rate / s->speeds[n]; + s->length[n] = av_clipd(outlink->sample_rate / s->speeds[n], 0, INT_MAX); + if (s->length[n] < 1) { + av_log(ctx, AV_LOG_ERROR, "Speed %g is above the sample rate of %d.\n", + s->speeds[n], outlink->sample_rate); + return AVERROR(EINVAL); + } s->lookup_table[n] = av_malloc(sizeof(int32_t) * s->length[n]); if (!s->lookup_table[n]) -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
