File ImageMagick-CVE-2014-9812.patch of Package ImageMagick.3560
Index: ImageMagick-6.8.9-8/coders/ps.c
===================================================================
--- ImageMagick-6.8.9-8.orig/coders/ps.c 2014-07-23 21:21:54.000000000 +0200
+++ ImageMagick-6.8.9-8/coders/ps.c 2016-06-14 14:06:10.784679217 +0200
@@ -631,6 +631,8 @@ static Image *ReadPSImage(const ImageInf
continue;
length=extent;
profile=BlobToStringInfo((const void *) NULL,length);
+ if (profile == (StringInfo *) NULL)
+ continue;
p=GetStringInfoDatum(profile);
for (i=0; i < (ssize_t) length; i++)
*p++=(unsigned char) ProfileInteger(image,hex_digits);