]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 31 Mar 2018 18:30:50 +0000 (14:30 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 31 Mar 2018 18:30:50 +0000 (14:30 -0400)
coders/pict.c

index 589b606da2309caaf49a3fe23c10c62b74fe9b9d..132b637e8d4a52e81db6fcd764cc39b02334b9f9 100644 (file)
@@ -1210,6 +1210,8 @@ static Image *ReadPICTImage(const ImageInfo *image_info,
                     }
                   }
               }
+            if (EOFBlob(image) != MagickFalse)
+              break;
             if (ReadRectangle(image,&source) == MagickFalse)
               ThrowPICTException(CorruptImageError,"ImproperImageHeader");
             if (ReadRectangle(image,&destination) == MagickFalse)