From: Cristy Date: Sat, 24 Mar 2018 13:16:48 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7098 X-Git-Tag: 7.0.7-28~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05a74df42cf93a72280202ef6dafd06a23acbee9;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7098 --- diff --git a/coders/tiff.c b/coders/tiff.c index f835d9d4e..1721fb04b 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1375,6 +1375,7 @@ RestoreMSCWarning TIFFClose(tiff); ThrowReaderException(CorruptImageError,"ImproperImageHeader"); } + photometric=PHOTOMETRIC_RGB; (void) TIFFGetFieldDefaulted(tiff,TIFFTAG_PHOTOMETRIC,&photometric); if (sample_format == SAMPLEFORMAT_IEEEFP) (void) SetImageProperty(image,"quantum:format","floating-point",