From: Cristy Date: Wed, 22 Feb 2017 01:32:12 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.5-1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38430f67724aaf0b0485296134c5bbfb7fcac647;p=imagemagick ... --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index ded456ef2..6730b5d7a 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -3461,7 +3461,7 @@ static MagickBooleanType OpenPixelCache(Image *image,const MapMode mode, assert(cache_info->signature == MagickCoreSignature); if ((AcquireMagickResource(WidthResource,image->columns) == MagickFalse) || (AcquireMagickResource(HeightResource,image->rows) == MagickFalse)) - ThrowBinaryException(ImageError,"WidthOrHeightExceedsLimit", + ThrowBinaryException(ResourceLimitError,"WidthOrHeightExceedsLimit", image->filename); source_info=(*cache_info); source_info.file=(-1);