File ImageMagick-unable-to-read-font-memory-leaks.patch of Package ImageMagick.8212

From 7a6511726e9ff929283001cc161c6b5f5f8cb82c Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Sat, 1 Oct 2016 12:23:56 -0400
Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/273

---
 magick/annotate.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: ImageMagick-6.8.8-1/magick/annotate.c
===================================================================
--- ImageMagick-6.8.8-1.orig/magick/annotate.c	2013-12-01 15:47:50.000000000 +0100
+++ ImageMagick-6.8.8-1/magick/annotate.c	2017-11-29 15:59:06.123015020 +0100
@@ -860,6 +860,8 @@ static MagickBooleanType RenderType(Imag
         }
       if (*draw_info->font == '-')
         return(RenderX11(image,draw_info,offset,metrics));
+      if (*draw_info->font == '^')
+        return(RenderPostscript(image,draw_info,offset,metrics));
       if (IsPathAccessible(draw_info->font) != MagickFalse)
         {
           status=RenderFreetype(image,draw_info,draw_info->encoding,offset,
@@ -1125,7 +1127,7 @@ static MagickBooleanType RenderFreetype(
       (void) FT_Done_FreeType(library);
       (void) ThrowMagickException(&image->exception,GetMagickModule(),TypeError,
         "UnableToReadFont","`%s'",draw_info->font);
-      return(RenderPostscript(image,draw_info,offset,metrics));
+      return(MagickFalse);
     }
   if ((draw_info->metrics != (char *) NULL) &&
       (IsPathAccessible(draw_info->metrics) != MagickFalse))