From: Cristy Date: Thu, 16 Feb 2017 13:52:17 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-10~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1667f37e310f7640278407a7e84bc787485030dd;p=imagemagick ... --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 34dd519ea..fec196724 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -4699,6 +4699,8 @@ static inline MagickBooleanType AcquireCacheNexusPixels( nexus_info->mapped=MagickFalse; nexus_info->cache=(Quantum *) MagickAssumeAligned(AcquireAlignedMemory(1, (size_t) nexus_info->length)); + if (nexus_info->cache != (PixelPacket *) NULL) + ResetMagickMemory(nexus_info->cache,0,(size_t) nexus_info->length); } else {