Skip to content

Commit

Permalink
noincrease
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 29, 2024
1 parent 76df02d commit 1196641
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libImaging/Jpeg2KDecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,12 +864,6 @@ j2k_decode_entry(Imaging im, ImagingCodecState state) {
goto quick_exit;
}

tile_bytes = tile_width * tile_height * total_component_width;

if (tile_bytes > tile_info.data_size) {
tile_info.data_size = tile_bytes;
}

if (tile_info.data_size > 0) {
/* malloc check ok, overflow and tile size sanity check above */
UINT8 *new = realloc(state->buffer, tile_info.data_size);
Expand Down

0 comments on commit 1196641

Please sign in to comment.