From 12d1f292d4f70a8461d654989e05dd4b9604c817 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 16 Mar 2015 11:16:17 +0000 Subject: [PATCH] --- coders/fd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coders/fd.c b/coders/fd.c index c73c9b5f8..bd8c49f83 100644 --- a/coders/fd.c +++ b/coders/fd.c @@ -105,8 +105,10 @@ static Image *ReadFDImage(const ImageInfo *image_info,ExceptionInfo *exception) assert(exception->signature == MagickSignature); read_info=CloneImageInfo(image_info); read_info->file=fdopen(StringToLong(image_info->filename),"rb"); - if (read_info->file == (FILE *) NULL) + if ((read_info->file == (FILE *) NULL) || + (IsGeometry(image_info->filename) == MagickFalse)) { + read_info=DestroyImageInfo(read_info); ThrowFileException(exception,BlobError,"UnableToOpenBlob", image_info->filename); return((Image *) NULL); -- 2.40.0