File ImageMagick-CVE-2019-12977.patch of Package ImageMagick.30356

Index: ImageMagick-7.0.7-34/coders/jp2.c
===================================================================
--- ImageMagick-7.0.7-34.orig/coders/jp2.c	2018-05-20 17:55:43.000000000 +0200
+++ ImageMagick-7.0.7-34/coders/jp2.c	2019-07-18 15:51:32.336778951 +0200
@@ -856,6 +856,7 @@ static MagickBooleanType WriteJP2Image(c
       /*
         Set tile size.
       */
+      (void) memset(&geometry,0,sizeof(geometry));
       flags=ParseAbsoluteGeometry(image_info->extract,&geometry);
       parameters.cp_tdx=(int) geometry.width;
       parameters.cp_tdy=(int) geometry.width;
openSUSE Build Service is sponsored by