From: Cristy Date: Sat, 27 Apr 2019 14:08:24 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1555 X-Git-Tag: 7.0.8-43~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f06925afeabe3f01045db33d5a33d55e64378ebc;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1555 --- diff --git a/coders/tiff.c b/coders/tiff.c index 11387aa3a..adc34c473 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -4307,6 +4307,8 @@ RestoreMSCWarning if (image->colorspace == LabColorspace) DecodeLabImage(image,exception); DestroyTIFFInfo(&tiff_info); + if (exception->severity > ErrorException) + break; DisableMSCWarning(4127) if (0 && (image_info->verbose != MagickFalse)) RestoreMSCWarning @@ -4320,6 +4322,6 @@ RestoreMSCWarning break; } while (adjoin != MagickFalse); TIFFClose(tiff); - return(MagickTrue); + return(exception->severity > ErrorException ? MagickFalse : MagickTrue); } #endif