File ImageMagick-CVE-2016-10146.patch of Package ImageMagick.8212

Index: ImageMagick-6.8.8-1/coders/caption.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/caption.c	2017-01-23 08:47:30.531568316 +0100
+++ ImageMagick-6.8.8-1/coders/caption.c	2017-01-23 08:54:58.598906771 +0100
@@ -275,7 +275,7 @@ static Image *ReadCAPTIONImage(const Ima
         (void) FormatLocaleString(geometry,MaxTextExtent,"%+g%+g",
           image->columns-(metrics.bounds.x2+draw_info->stroke_width/2.0),
           metrics.ascent+draw_info->stroke_width/2.0);
-      draw_info->geometry=AcquireString(geometry);
+      (void) CloneString(&draw_info->geometry,geometry);
     }
   status=AnnotateImage(image,draw_info);
   draw_info=DestroyDrawInfo(draw_info);