]> granicus.if.org Git - imagemagick/commitdiff
Corrected PSD channel check (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id...
authorDirk Lemstra <dirk@git.imagemagick.org>
Mon, 5 Mar 2018 20:39:03 +0000 (21:39 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Mon, 5 Mar 2018 20:39:03 +0000 (21:39 +0100)
coders/psd.c

index b41e7d8f2a65771608e71479ca7595d1345f6e9c..3089a505a7565b38225601a3042f74f03d9695bc 100644 (file)
@@ -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)