From 5e551651a8a6bb2b83b7cad5abb60d94a933e5fe Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Mon, 5 Mar 2018 21:39:03 +0100 Subject: [PATCH] Corrected PSD channel check (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6240) --- coders/psd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/psd.c b/coders/psd.c index b41e7d8f2..3089a505a 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -1554,7 +1554,7 @@ static MagickBooleanType CheckPSDChannels(const PSDInfo *psd_info, continue; } if (type < -1) - type=MagickAbsoluteValue(type+2); + continue; if (type == 0) channel_type&=~RedChannel; else if (type == 1) -- 2.49.0