File ImageMagick-CVE-2019-10650.patch of Package ImageMagick.30956

Index: ImageMagick-6.8.8-1/coders/tiff.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/tiff.c	2019-04-04 13:31:50.554703892 +0200
+++ ImageMagick-6.8.8-1/coders/tiff.c	2019-04-04 13:33:39.947269888 +0200
@@ -2817,6 +2817,11 @@ static MagickBooleanType WriteTIFFImage(
       (void) TIFFSetErrorHandler(error_handler);
       return(MagickFalse);
     }
+  if (image->exception.severity > ErrorException)
+    {
+      TIFFClose(tiff);
+      return(MagickFalse);
+    }
   scene=0;
   debug=IsEventLogging();
   (void) debug;
openSUSE Build Service is sponsored by