]> granicus.if.org Git - imagemagick/commitdiff
Fixed reading out of bounds (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id...
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 22 Apr 2018 08:48:28 +0000 (10:48 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 22 Apr 2018 08:48:54 +0000 (10:48 +0200)
coders/psd.c

index dde93c7cd6d53bfb10df9f14a01f5ce7ad701e94..1dcac026d9301a5e897dcc6917014a6927dff962 100644 (file)
@@ -829,7 +829,7 @@ static StringInfo *ParseImageResourceBlocks(Image *image,
       }
       case 0x0421:
       {
-        if ((count > 3) && (*(p+4) == 0))
+        if ((count > 4) && (*(p+4) == 0))
           *has_merged_image=MagickFalse;
         p+=count;
         break;