From 36427a44ba8267c8e22542c54f39d43f5a4f2ca2 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 19 Jan 2017 20:11:11 -0500 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31262 --- MagickCore/cache.c | 4 +++- MagickCore/stream.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 3e7511567..a22adb483 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -4671,7 +4671,9 @@ static inline MagickBooleanType AcquireCacheNexusPixels( nexus_info->mapped=MagickFalse; nexus_info->cache=(Quantum *) MagickAssumeAligned(AcquireAlignedMemory(1, (size_t) nexus_info->length)); - if (nexus_info->cache == (Quantum *) NULL) + if (nexus_info->cache != (Quantum *) NULL) + (void) ResetMagickMemory(nexus_info->cache,0,nexus_info->length); + else { nexus_info->mapped=MagickTrue; nexus_info->cache=(Quantum *) MapBlob(-1,IOMode,0,(size_t) diff --git a/MagickCore/stream.c b/MagickCore/stream.c index 5d8eefeea..ac2610781 100644 --- a/MagickCore/stream.c +++ b/MagickCore/stream.c @@ -568,14 +568,14 @@ MagickPrivate const void *GetStreamInfoClientData(StreamInfo *stream_info) % % % % % % -+ G e t V i r t u a l P i x e l s F r o m S t r e a m % ++ G e t V i r t u a l P i x e l s F r o m S t r e a m % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% GetVirtualPixelsStream() returns the pixels associated with the last -% call to QueueAuthenticPixelsStream() or GetVirtualPixelStream(). +% GetVirtualPixelsStream() returns the pixels associated with the last call to +% QueueAuthenticPixelsStream() or GetVirtualPixelStream(). % % The format of the GetVirtualPixelsStream() method is: % -- 2.40.0