File ImageMagick-CVE-2019-11597.patch of Package ImageMagick.24648

diff --git a/coders/tiff.c b/coders/tiff.c
index 11387aa3ab..adc34c473f 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -4307,6 +4307,8 @@ RestoreMSCWarning
     if (image->colorspace == LabColorspace)
       DecodeLabImage(image,exception);
     DestroyTIFFInfo(&tiff_info);
+    if (exception->severity > ErrorException)
+      break;
 DisableMSCWarning(4127)
     if (0 && (image_info->verbose != MagickFalse))
 RestoreMSCWarning
@@ -4320,6 +4322,6 @@ RestoreMSCWarning
       break;
   } while (adjoin != MagickFalse);
   TIFFClose(tiff);
-  return(MagickTrue);
+  return(exception->severity > ErrorException ? MagickFalse : MagickTrue);
 }
 #endif

openSUSE Build Service is sponsored by