File ImageMagick-CVE-2019-13295,13297.patch of Package ImageMagick.12053
Index: ImageMagick-6.8.8-1/magick/threshold.c
===================================================================
--- ImageMagick-6.8.8-1.orig/magick/threshold.c 2013-12-29 16:20:13.000000000 +0100
+++ ImageMagick-6.8.8-1/magick/threshold.c 2019-07-22 13:59:41.825076470 +0200
@@ -202,6 +202,8 @@ MagickExport Image *AdaptiveThresholdIma
threshold_image=CloneImage(image,0,0,MagickTrue,exception);
if (threshold_image == (Image *) NULL)
return((Image *) NULL);
+ if ((width == 0) || (height == 0))
+ return(threshold_image);
if (SetImageStorageClass(threshold_image,DirectClass) == MagickFalse)
{
InheritException(exception,&threshold_image->exception);