File ImageMagick-CVE-2014-8562.patch of Package ImageMagick.openSUSE_13.1_Update

http://trac.imagemagick.org/changeset/16795
Index: coders/dcm.c
===================================================================
--- coders/dcm.c.orig	2013-04-26 15:46:00.000000000 +0200
+++ coders/dcm.c	2014-11-04 10:15:48.055946808 +0100
@@ -2611,7 +2611,7 @@
     { 0xfffe, 0xe000, "!!", "Item" },
     { 0xfffe, 0xe00d, "!!", "Item Delimitation Item" },
     { 0xfffe, 0xe0dd, "!!", "Sequence Delimitation Item" },
-    { 0xffff, 0xffff, "xs", "" }
+    { 0xffff, 0xffff, "xs", (char *) NULL }
   };
 
 /*
@@ -3408,6 +3408,8 @@
           if ((group == (ssize_t) dicom_info[i].group) &&
               (element == (ssize_t) dicom_info[i].element))
             break;
+        if (dicom_info[i].description != (char *) NULL) 
+        {
         attribute=AcquireString("dcm:");
         (void) ConcatenateString(&attribute,dicom_info[i].description);
         for (i=0; i < (ssize_t) MagickMax(length,4); i++)
@@ -3419,6 +3421,7 @@
             (void) SetImageProperty(image,attribute,(char *) data);
           }
         attribute=DestroyString(attribute);
+        }
       }
     if (image_info->verbose != MagickFalse)
       {
openSUSE Build Service is sponsored by