From: Dirk Lemstra Date: Tue, 16 Jul 2019 19:07:11 +0000 (+0200) Subject: Corrected check. X-Git-Tag: 7.0.8-54~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=668d6a970553a94b0a2e378afda1d37abac94b5c;p=imagemagick Corrected check. --- diff --git a/coders/ps.c b/coders/ps.c index 46a73dd06..2cdb6f6b6 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -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)