File GraphicsMagick-CVE-2017-14532.patch of Package GraphicsMagick.7727

Index: GraphicsMagick-1.3.25/coders/tiff.c
===================================================================
--- GraphicsMagick-1.3.25.orig/coders/tiff.c	2017-10-05 13:35:15.499600709 +0200
+++ GraphicsMagick-1.3.25/coders/tiff.c	2017-10-05 13:35:41.992066200 +0200
@@ -321,6 +321,8 @@ TIFFIgnoreTags(TIFF *tiff)
   i=0;
   p=tags;
   ignore=MagickAllocateArray(TIFFFieldInfo*,count,sizeof(*ignore));
+  if (ignore == (TIFFFieldInfo *) NULL)
+    return;
   /* This also sets field_bit to 0 (FIELD_IGNORE) */
   (void) memset(ignore,0,count*sizeof(*ignore));
   while (*p != '\0')
openSUSE Build Service is sponsored by