From: cristy Date: Thu, 17 Jan 2013 20:16:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4421 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e27c19696517e8ec47c9927d86a83b8483de1313;p=imagemagick --- diff --git a/MagickCore/distribute-cache.c b/MagickCore/distribute-cache.c index 823d89ad9..ae8e33a59 100644 --- a/MagickCore/distribute-cache.c +++ b/MagickCore/distribute-cache.c @@ -412,6 +412,8 @@ static MagickBooleanType OpenDistributeCache(SplayTreeInfo *image_registry, exception=AcquireExceptionInfo(); image=AcquireImage((ImageInfo *) NULL,exception); exception=DestroyExceptionInfo(exception); + if (image == (Image *) NULL) + return(MagickFalse); length=sizeof(image->columns)+sizeof(image->rows)+ sizeof(image->number_channels); count=read(file,buffer,length);