From: Dirk Lemstra Date: Sun, 8 Apr 2018 12:25:06 +0000 (+0200) Subject: Added call to ResetImagePixels because we allow decoding part of the image. X-Git-Tag: 7.0.7-29~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a971941b7cab4b90f32be256975cb03a7dbdf7ee;p=imagemagick Added call to ResetImagePixels because we allow decoding part of the image. --- diff --git a/coders/tiff.c b/coders/tiff.c index 0c0caca21..2afc1cad9 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1651,6 +1651,12 @@ RestoreMSCWarning goto next_tiff_frame; } status=SetImageExtent(image,image->columns,image->rows,exception); + if (status == MagickFalse) + { + TIFFClose(tiff); + return(DestroyImageList(image)); + } + status=ResetImagePixels(image,exception); if (status == MagickFalse) { TIFFClose(tiff);