File ImageMagick-CVE-2021-4219.patch of Package ImageMagick

diff --git a/MagickCore/draw.c b/MagickCore/draw.c
index c98f0764eb..a11110b789 100644
--- a/MagickCore/draw.c
+++ b/MagickCore/draw.c
@@ -5535,7 +5535,7 @@ MagickExport MagickBooleanType DrawPrimitive(Image *image,
           {
             (void) CopyMagickString(clone_info->filename,primitive_info->text,
               MagickPathExtent);
-            status&=SetImageInfo(clone_info,0,exception);
+            status&=SetImageInfo(clone_info,1,exception);
             (void) CopyMagickString(clone_info->filename,primitive_info->text,
               MagickPathExtent);
             if (clone_info->size != (char *) NULL)

openSUSE Build Service is sponsored by