From: Cristy Date: Tue, 12 Mar 2019 21:15:37 +0000 (-0400) Subject: Report exception if opening TIFF did not work out X-Git-Tag: 7.0.8-34~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9e946c11a210f7a0e9d4e653d70a5368cbc2fa5;p=imagemagick Report exception if opening TIFF did not work out --- diff --git a/coders/tiff.c b/coders/tiff.c index 0b034da07..82df344e7 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1329,6 +1329,12 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, image=DestroyImageList(image); return((Image *) NULL); } + if (exception->severity > ErrorException) + { + TIFFClose(tiff); + image=DestroyImageList(image); + return (Image *) NULL; + } if (image_info->number_scenes != 0) { /*