From bf5bf359617e63344899fbb511b22f203948dc15 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 5 May 2018 07:45:04 -0400 Subject: [PATCH] ... --- MagickCore/memory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MagickCore/memory.c b/MagickCore/memory.c index 85e168736..2a160e002 100644 --- a/MagickCore/memory.c +++ b/MagickCore/memory.c @@ -582,7 +582,6 @@ MagickExport MemoryInfo *AcquireVirtualMemory(const size_t count, if (HeapOverflowSanityCheck(count,quantum) != MagickFalse) return((MemoryInfo *) NULL); - (void) GetMaxMemoryRequest(); if (virtual_anonymous_memory == 0) { virtual_anonymous_memory=1; @@ -607,7 +606,7 @@ MagickExport MemoryInfo *AcquireVirtualMemory(const size_t count, memory_info->length=extent; memory_info->signature=MagickCoreSignature; if ((virtual_anonymous_memory == 1) && - ((count*quantum) <= (size_t) max_memory_request)) + ((count*quantum) <= (size_t) GetMaxMemoryRequest())) { memory_info->blob=AcquireAlignedMemory(1,extent); if (memory_info->blob != NULL) @@ -619,7 +618,7 @@ MagickExport MemoryInfo *AcquireVirtualMemory(const size_t count, Acquire anonymous memory map. */ memory_info->blob=NULL; - if ((count*quantum) <= (size_t) max_memory_request) + if ((count*quantum) <= (size_t) GetMaxMemoryRequest()) memory_info->blob=MapBlob(-1,IOMode,0,extent); if (memory_info->blob != NULL) memory_info->type=MapVirtualMemory; -- 2.40.0