From 6b3bdb65b983bc6eac53ca2f7c86a4c8ae471b20 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 3 Feb 2019 19:25:05 -0500 Subject: [PATCH] ... --- MagickCore/constitute.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MagickCore/constitute.c b/MagickCore/constitute.c index 051ea5aad..2fd5f9878 100644 --- a/MagickCore/constitute.c +++ b/MagickCore/constitute.c @@ -641,7 +641,11 @@ MagickExport Image *ReadImage(const ImageInfo *image_info, if (n != 2) { clones=CloneImages(image,read_info->scenes,exception); - if (clones != (Image *) NULL) + if (clones == (Image *) NULL) + (void) ThrowMagickException(exception,GetMagickModule(),OptionError, + "SubimageSpecificationReturnsNoImages","`%s'", + read_info->filename); + else { image=DestroyImageList(image); image=GetFirstImageInList(clones); -- 2.40.0