]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 18 May 2014 12:46:29 +0000 (12:46 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 18 May 2014 12:46:29 +0000 (12:46 +0000)
coders/pict.c

index 98804d687a20b6a7d1ef5e4707681e6e1883994f..01240cdc8277d17a591ed6f3bebbd9650035c156 100644 (file)
@@ -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)