]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/879
authorCristy <urban-warrior@imagemagick.org>
Fri, 24 Nov 2017 14:17:19 +0000 (09:17 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 24 Nov 2017 14:17:19 +0000 (09:17 -0500)
coders/pict.c

index 530cb7e6e654482f8619a84bc422119d4340930c..7e56d8f13151533edc00d2c54dd1a351cd8ea1cf 100644 (file)
@@ -1125,7 +1125,7 @@ static Image *ReadPICTImage(const ImageInfo *image_info,
             tile_image=CloneImage(image,1UL*(frame.right-frame.left),
               1UL*(frame.bottom-frame.top),MagickTrue,exception);
             if (tile_image == (Image *) NULL)
-              return((Image *) NULL);
+              ThrowReaderException(CorruptImageError,"ImproperImageHeader");
             if ((code == 0x9a) || (code == 0x9b) ||
                 ((bytes_per_line & 0x8000) != 0))
               {