From 05a74df42cf93a72280202ef6dafd06a23acbee9 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 24 Mar 2018 09:16:48 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7098 --- coders/tiff.c | 1 + 1 file changed, 1 insertion(+) 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", -- 2.40.0