PR #26015 opened by Baptiste Coudurier (bcoudurier) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26015 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26015.patch
The checkasm lls test called evaluate_lls() with order equal to indep_count, so for 32 variables it read coeff[32], one row past the end of the array. The only real caller (lpc.c) passes max_order - 1, so the test now does the same. Fixes #25991. 🤖 Generated with [Claude Code](https://claude.com/claude-code) From 033e0ff7b3863ceceeed7f585810403c5412e298 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier <[email protected]> Date: Thu, 12 Nov 2026 19:00:08 -0800 Subject: [PATCH] tests/checkasm/lls: pass an order below indep_count to evaluate_lls order indexes coeff[], so order == MAX_VARS read past it. Fixes #25991. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Baptiste Coudurier <[email protected]> --- tests/checkasm/lls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checkasm/lls.c b/tests/checkasm/lls.c index 0670941403c..0bf58c50c3a 100644 --- a/tests/checkasm/lls.c +++ b/tests/checkasm/lls.c @@ -69,7 +69,7 @@ static void test_evaluate(LLSModel *lls, const double *param, int order) fail(); } - if (order == lls->indep_count) + if (order == lls->indep_count - 1) bench_new(lls, param, order); } @@ -91,7 +91,7 @@ void checkasm_check_lls(void) for (size_t j = 0; j <= i; j++) if (check_func(lls.evaluate_lls, "evaluate_lls_%d_%d", counts[i], counts[j])) - test_evaluate(&lls, param + 1, counts[j]); + test_evaluate(&lls, param + 1, counts[j] - 1); } report("lls"); } -- 2.54.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
