File ImageMagick-CVE-2014-8562.patch of Package ImageMagick.openSUSE_13.2_Update
http://trac.imagemagick.org/changeset/16795
Index: coders/dcm.c
===================================================================
--- coders/dcm.c.orig 2014-04-18 19:10:15.000000000 +0200
+++ coders/dcm.c 2014-11-04 09:20:38.909446591 +0100
@@ -2614,7 +2614,7 @@
{ 0xfffe, 0xe000, "!!", "Item" },
{ 0xfffe, 0xe00d, "!!", "Item Delimitation Item" },
{ 0xfffe, 0xe0dd, "!!", "Sequence Delimitation Item" },
- { 0xffff, 0xffff, "xs", "" }
+ { 0xffff, 0xffff, "xs", (char *) NULL }
};
@@ -3433,6 +3433,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++)
@@ -3444,6 +3446,7 @@
(void) SetImageProperty(image,attribute,(char *) data);
}
attribute=DestroyString(attribute);
+ }
}
if (image_info->verbose != MagickFalse)
{