Skip to content

Commit 4044ecc

Browse files
authored
Merge pull request #5366 from kkopachev/kk-remove-extra-check
Remove redundant check (addition to #5364)
2 parents c54a7bb + 19a815d commit 4044ecc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/libImaging/TiffDecode.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -427,15 +427,6 @@ _decodeTile(Imaging im, ImagingCodecState state, TIFF *tiff, int planes, Imaging
427427
for (plane = 0; plane < planes; plane++) {
428428
ImagingShuffler shuffler = unpackers[plane];
429429
for (x = state->xoff; x < state->xsize; x += tile_width) {
430-
/* Sanity Check. Apparently in some cases, the TiffReadRGBA* functions
431-
have a different view of the size of the tiff than we're getting from
432-
other functions. So, we need to check here.
433-
*/
434-
if (!TIFFCheckTile(tiff, x, y, 0, plane)) {
435-
TRACE(("Check Tile Error, Tile at %dx%d\n", x, y));
436-
state->errcode = IMAGING_CODEC_BROKEN;
437-
return -1;
438-
}
439430
if (TIFFReadTile(tiff, (tdata_t)state->buffer, x, y, 0, plane) == -1) {
440431
TRACE(("Decode Error, Tile at %dx%d\n", x, y));
441432
state->errcode = IMAGING_CODEC_BROKEN;

0 commit comments

Comments
 (0)