From 2ba085736fd49ad89c1937d1ee2b80ae4e11ab97 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 24 Nov 2017 09:17:19 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/879 --- coders/pict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/pict.c b/coders/pict.c index 530cb7e6e..7e56d8f13 100644 --- a/coders/pict.c +++ b/coders/pict.c @@ -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)) { -- 2.40.0