File ImageMagick-CVE-2017-17885.patch of Package ImageMagick.11106
diff --git a/coders/pict.c b/coders/pict.c
index 4d18b6dcba..bcbcc1a8b2 100644
--- a/coders/pict.c
+++ b/coders/pict.c
@@ -1135,7 +1135,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))
{