This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 733bec3e19759520ccdbeb6c3c0cae280bbe6dc5 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Sep 7 00:36:04 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Sat Sep 19 01:16:28 2026 +0000 avcodec/nellymoserenc: keep the trellis index below OPT_SIZE Fixes: out of array access Fixes: 9UQo8TUCJdYw Found-by: Zheng Yu <[email protected]> --- libavcodec/nellymoserenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index 54b598dbb1..408193ad07 100644 --- a/libavcodec/nellymoserenc.c +++ b/libavcodec/nellymoserenc.c @@ -259,7 +259,7 @@ static void get_exponent_dynamic(NellyMoserEncodeContext *s, float *cand, int *i power_candidate = cand[band]; for (q = 1000; !c && q < OPT_SIZE; q <<= 2) { idx_min = FFMAX(0, cand[band] - q); - idx_max = FFMIN(OPT_SIZE, cand[band - 1] + q); + idx_max = FFMIN(OPT_SIZE - 1, cand[band - 1] + q); for (i = FFMAX(0, cand[band - 1] - q); i < FFMIN(OPT_SIZE, cand[band - 1] + q); i++) { if ( isinf(opt[band - 1][i]) ) continue; -- 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]
