File ImageMagick-CVE-2019-13301.patch of Package ImageMagick.15344

Index: ImageMagick-6.8.8-1/magick/annotate.c
===================================================================
--- ImageMagick-6.8.8-1.orig/magick/annotate.c	2019-07-23 15:58:27.825193968 +0200
+++ ImageMagick-6.8.8-1/magick/annotate.c	2019-07-23 15:58:30.017206461 +0200
@@ -297,7 +297,12 @@ MagickExport MagickBooleanType AnnotateI
       (void) ParseGeometry(annotate_info->geometry,&geometry_info);
     }
   if (SetImageStorageClass(image,DirectClass) == MagickFalse)
-    return(MagickFalse);
+    {
+      annotate_info=DestroyDrawInfo(annotate_info);
+      annotate=DestroyDrawInfo(annotate);
+      textlist=(char **) RelinquishMagickMemory(textlist);
+      return(MagickFalse);
+    }
   if (IsGrayColorspace(image->colorspace) != MagickFalse)
     (void) SetImageColorspace(image,sRGBColorspace);
   status=MagickTrue;
openSUSE Build Service is sponsored by