From 0a996a76520027e5723630894ece8cf9a8e2e23e Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 3 Mar 2019 16:28:07 -0500 Subject: [PATCH] ... --- MagickCore/cache.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.40.0