Skip to content

Commit 1abc2e5

Browse files
committed
Fixed an array overflow problem in the JPC decoder.
1 parent 71bbf41 commit 1abc2e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/libjasper/jpc/jpc_dec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ static int jpc_dec_tileinit(jpc_dec_t *dec, jpc_dec_tile_t *tile)
712712
uint_fast32_t tmpxend;
713713
uint_fast32_t tmpyend;
714714
jpc_dec_cp_t *cp;
715-
jpc_tsfb_band_t bnds[64];
715+
jpc_tsfb_band_t bnds[JPC_MAXBANDS];
716716
jpc_pchg_t *pchg;
717717
int pchgno;
718718
jpc_dec_cmpt_t *cmpt;

0 commit comments

Comments
 (0)