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

Git pushed a commit to branch master
in repository ffmpeg.

commit 8476836f82d1b966f52c16c6acea243307ae563f
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Sep 13 20:55:25 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 19 01:16:28 2026 +0000

    avcodec/nellymoserenc: refuse exponents that overflow the scale factor shift
    
    Found during triage/review of the security report.
    
    Fixes: shift exponent 37 is too large for 32-bit type 'int'
    Fixes: 9UQo8TUCJdYw
---
 libavcodec/nellymoserenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c
index 98bf563756..5de624b7dc 100644
--- a/libavcodec/nellymoserenc.c
+++ b/libavcodec/nellymoserenc.c
@@ -347,6 +347,8 @@ static int encode_block(NellyMoserEncodeContext *s, 
unsigned char *output, int o
             power_idx = ff_nelly_init_table[idx_table[0]];
             put_bits(&pb, 6, idx_table[0]);
         }
+        if (power_idx >= (31 - POW_TABLE_OFFSET) << 11)
+            return AVERROR(EINVAL);
         power_val = pow_table[power_idx & 0x7FF] / (1 << ((power_idx >> 11) + 
POW_TABLE_OFFSET));
         for (j = 0; j < ff_nelly_band_sizes_table[band]; i++, j++) {
             s->mdct_out[i] *= power_val;

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