From 4e10da08da29c4861fb6b4febdd24026c3c26077 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 11 Aug 2019 09:20:59 -0400 Subject: [PATCH] ... --- MagickCore/cache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 30ee6bc76..2842b1c73 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -5342,7 +5342,8 @@ MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus(Image *image, } if (nexus_info->authentic_pixel_cache != MagickFalse) { - image->taint=MagickTrue; + if (image->taint == MagickFalse) + image->taint=MagickTrue; return(MagickTrue); } assert(cache_info->signature == MagickCoreSignature); @@ -5350,7 +5351,7 @@ MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus(Image *image, if ((cache_info->metacontent_extent != 0) && (WritePixelCacheMetacontent(cache_info,nexus_info,exception) == MagickFalse)) return(MagickFalse); - if (status != MagickFalse) + if ((status != MagickFalse) && (image->taint == MagickFalse)) image->taint=MagickTrue; return(status); } -- 2.40.0