File ImageMagick-CVE-2019-10650.patch of Package ImageMagick.19146
Index: ImageMagick-7.0.7-34/coders/tiff.c
===================================================================
--- ImageMagick-7.0.7-34.orig/coders/tiff.c 2019-04-04 13:27:25.652979925 +0200
+++ ImageMagick-7.0.7-34/coders/tiff.c 2019-04-04 13:28:56.581416776 +0200
@@ -3468,6 +3468,11 @@ static MagickBooleanType WriteTIFFImage(
TIFFUnmapBlob);
if (tiff == (TIFF *) NULL)
return(MagickFalse);
+ if (exception->severity > ErrorException)
+ {
+ TIFFClose(tiff);
+ return(MagickFalse);
+ }
scene=0;
debug=IsEventLogging();
(void) debug;