From: Cristy Date: Wed, 28 Feb 2018 00:24:28 +0000 (-0500) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33580 X-Git-Tag: 7.0.7-25~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fb12253b33a4a752c1d5cb34eff5e1c58ff6bac;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=33580 --- diff --git a/coders/tiff.c b/coders/tiff.c index 7ffbc167a..8179c244a 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1370,12 +1370,12 @@ RestoreMSCWarning (TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE,&bits_per_sample) != 1) || (TIFFGetFieldDefaulted(tiff,TIFFTAG_SAMPLEFORMAT,&sample_format) != 1) || (TIFFGetFieldDefaulted(tiff,TIFFTAG_MINSAMPLEVALUE,&min_sample_value) != 1) || - (TIFFGetFieldDefaulted(tiff,TIFFTAG_MAXSAMPLEVALUE,&max_sample_value) != 1) || - (TIFFGetFieldDefaulted(tiff,TIFFTAG_PHOTOMETRIC,&photometric) != 1)) + (TIFFGetFieldDefaulted(tiff,TIFFTAG_MAXSAMPLEVALUE,&max_sample_value) != 1)) { TIFFClose(tiff); ThrowReaderException(CorruptImageError,"ImproperImageHeader"); } + (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_PHOTOMETRIC,&photometric); if (sample_format == SAMPLEFORMAT_IEEEFP) (void) SetImageProperty(image,"quantum:format","floating-point", exception);