Browse Source

jpeg2000dec: Support 4 tile parts

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
c51654fbc0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/jpeg2000dec.c

+ 1
- 1
libavcodec/jpeg2000dec.c View File

@@ -54,7 +54,7 @@ typedef struct Jpeg2000Tile {
uint8_t properties[4]; uint8_t properties[4];
Jpeg2000CodingStyle codsty[4]; Jpeg2000CodingStyle codsty[4];
Jpeg2000QuantStyle qntsty[4]; Jpeg2000QuantStyle qntsty[4];
Jpeg2000TilePart tile_part[3];
Jpeg2000TilePart tile_part[4];
uint16_t tp_idx; // Tile-part index uint16_t tp_idx; // Tile-part index
} Jpeg2000Tile; } Jpeg2000Tile;




Loading…
Cancel
Save