File ImageMagick-CVE-2016-7536.patch of Package ImageMagick.openSUSE_13.2_Update

--- a/magick/profile.c
+++ b/magick/profile.c
@@ -1444,7 +1444,8 @@ static void WriteTo8BimProfile(Image *image,const char *name,
     count=(ssize_t) value;
     if ((count & 0x01) != 0)
       count++;
-    if ((p > (datum+length-count)) || (count > (ssize_t) length))
+    if ((count < 0) || (p > (datum+length-count)) ||
+        (count > (ssize_t) length))
       break;
     if (id != profile_id)
       p+=count;
openSUSE Build Service is sponsored by