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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 59367afc3d avcodec/jpeg2000dec: compute mask in decode_clnpass() like 
in decode_sigpass()
59367afc3d is described below

commit 59367afc3d4d86dbe2123c5ff750be7f54f6da7a
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed May 20 04:00:33 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Thu May 21 01:08:30 2026 +0000

    avcodec/jpeg2000dec: compute mask in decode_clnpass() like in 
decode_sigpass()
    
    Fixes: integer overflow
    
    Found by: Jiale Yao
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/jpeg2000dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index c5682829b6..01c025235e 100644
--- a/libavcodec/jpeg2000dec.c
+++ b/libavcodec/jpeg2000dec.c
@@ -1960,7 +1960,7 @@ static void decode_clnpass(const Jpeg2000DecoderContext 
*s, Jpeg2000T1Context *t
                            int width, int height, int bpno, int bandno,
                            int seg_symbols, int vert_causal_ctx_csty_symbol)
 {
-    int mask = 3 << (bpno - 1), y0, x, y, runlen, dec;
+    int mask = (3u << bpno)>>1, y0, x, y, runlen, dec;
 
     for (y0 = 0; y0 < height; y0 += 4) {
         for (x = 0; x < width; x++) {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to