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

From 56d6e20de489113617cbbddaf41e92600a34db22 Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Wed, 2 Nov 2016 17:07:05 -0400
Subject: [PATCH] Prevent fault in MSL interpreter

---
 ChangeLog    | 2 ++
 coders/msl.c | 2 ++
 2 files changed, 4 insertions(+)

Index: ImageMagick-6.8.8-1/coders/msl.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/msl.c	2013-12-27 15:17:41.000000000 +0100
+++ ImageMagick-6.8.8-1/coders/msl.c	2017-01-25 14:15:22.527988775 +0100
@@ -4998,6 +4998,8 @@ static void MSLStartElement(void *contex
                     Image
                       *image;
 
+                    if (value == (char *) NULL)
+                      break;
                     (void) CopyMagickString(msl_info->image_info[n]->filename,
                       value,MaxTextExtent);
                     image=ReadImage(msl_info->image_info[n],&exception);