From: Cristy Date: Sun, 3 Mar 2019 21:28:07 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.8-31~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a996a76520027e5723630894ece8cf9a8e2e23e;p=imagemagick ... --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index b0e8d6838..830a3db27 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -4968,7 +4968,12 @@ static inline MagickBooleanType AcquireCacheNexusPixels( NexusInfo *nexus_info,ExceptionInfo *exception) { if (length != (MagickSizeType) ((size_t) length)) - return(MagickFalse); + { + (void) ThrowMagickException(exception,GetMagickModule(), + ResourceLimitError,"MemoryAllocationFailed","`%s'", + cache_info->filename); + return(MagickFalse); + } nexus_info->length=0; nexus_info->mapped=MagickFalse; if (cache_anonymous_memory <= 0)