]> granicus.if.org Git - imagemagick/commitdiff
Corrected check.
authorDirk Lemstra <dirk@lemstra.org>
Tue, 16 Jul 2019 19:07:11 +0000 (21:07 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Tue, 16 Jul 2019 19:07:34 +0000 (21:07 +0200)
coders/ps.c

index 46a73dd066b4c1484d2bcd0b48d555d91fd6f06e..2cdb6f6b6c7a95f3450b76f531a92c52d37a55a1 100644 (file)
@@ -417,7 +417,7 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image,
           continue;
         ps_info->photoshop_profile=AcquireStringInfo((size_t) extent);
         q=GetStringInfoDatum(ps_info->photoshop_profile);
-        while (extent > 0)
+        while (extent > 1)
         {
           c=ProfileInteger(&buffer,hex_digits);
           if (c == EOF)