Package: imagemagick / 8:6.9.10.23+dfsg-2.1+deb10u1

CVE-2019-11597-1.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 1d6c036f0388d7857c725342f7212b60e39a14c1 Mon Sep 17 00:00:00 2001
From: Cristy <mikayla-grace@urban-warrior.org>
Date: Sat, 27 Apr 2019 10:08:03 -0400
Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1555

---
 coders/tiff.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: imagemagick-6.9.10.23+dfsg/coders/tiff.c
===================================================================
--- imagemagick-6.9.10.23+dfsg.orig/coders/tiff.c	2019-06-12 13:45:21.551788760 -0400
+++ imagemagick-6.9.10.23+dfsg/coders/tiff.c	2019-06-12 13:45:21.547788745 -0400
@@ -4053,6 +4053,8 @@ RestoreMSCWarning
     if (image->colorspace == LabColorspace)
       DecodeLabImage(image,&image->exception);
     DestroyTIFFInfo(&tiff_info);
+    if (exception->severity > ErrorException)
+      break;
 DisableMSCWarning(4127)
     if (0 && (image_info->verbose != MagickFalse))
 RestoreMSCWarning
@@ -4066,6 +4068,6 @@ RestoreMSCWarning
       break;
   } while (image_info->adjoin != MagickFalse);
   TIFFClose(tiff);
-  return(MagickTrue);
+  return(exception->severity > ErrorException ? MagickFalse : MagickTrue);
 }
 #endif