From: cristy Date: Sun, 18 May 2014 12:46:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9f8502c4d73c30a1d81559f9a6af7091cacb6ef;p=imagemagick --- diff --git a/coders/pict.c b/coders/pict.c index 98804d687..01240cdc8 100644 --- a/coders/pict.c +++ b/coders/pict.c @@ -921,6 +921,8 @@ static Image *ReadPICTImage(const ImageInfo *image_info, code=ReadBlobByte(image); if (version == 2) code=(int) ReadBlobMSBShort(image); + if (code < 0) + break; if (code > 0xa1) { if (image->debug != MagickFalse)