Skip to content

Commit

Permalink
Raise exception when image could not be read but no exception was rai…
Browse files Browse the repository at this point in the history
…sed.
  • Loading branch information
dlemstra committed Feb 19, 2022
1 parent aa668b2 commit f939c22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/tiff.c
Expand Up @@ -1288,6 +1288,8 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
TIFFUnmapBlob);
if (tiff == (TIFF *) NULL)
{
if (exception->severity == UndefinedException)
ThrowReaderException(CorruptImageError,"UnableToReadImageData");
image=DestroyImageList(image);
return((Image *) NULL);
}
Expand Down

0 comments on commit f939c22

Please sign in to comment.