]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 11 Aug 2019 13:20:59 +0000 (09:20 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 11 Aug 2019 13:21:12 +0000 (09:21 -0400)
MagickCore/cache.c

index 30ee6bc766495c7a90d76111bb6e3321eaa336f1..2842b1c73635e3319f1966db4773ec0ac1a3e7b2 100644 (file)
@@ -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);
 }