This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit c1ea1353232ff530fd734c3ec8fc78746b55371a
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Sep 13 16:47:05 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 19 01:16:28 2026 +0000

    avcodec/nellymoserenc: widen the trellis search until it covers the table
    
    Found during triage/review of the security report.
    
    Fixes: out of array read
    Fixes: 9UQo8TUCJdYw
---
 libavcodec/nellymoserenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index af516eb82e..d797e3dcf0 100644
--- a/libavcodec/nellymoserenc.c
+++ b/libavcodec/nellymoserenc.c
@@ -257,7 +257,7 @@ static void get_exponent_dynamic(NellyMoserEncodeContext 
*s, float *cand, int *i
         float tmp;
         int idx_min, idx_max, idx;
         power_candidate = cand[band];
-        for (q = 1000; !c && q < OPT_SIZE; q <<= 2) {
+        for (q = 1000; !c && q < 2 * OPT_SIZE; q <<= 2) {
             idx_min = FFMAX(0, cand[band] - 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++) {
@@ -278,7 +278,7 @@ static void get_exponent_dynamic(NellyMoserEncodeContext 
*s, float *cand, int *i
                 }
             }
         }
-        av_assert1(c); //FIXME
+        av_assert1(c);
     }
 
     best_val = INFINITY;

-- 
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]

Reply via email to