From 90c4afcde1bf3ad5aead4477716161c350b049f8 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 23 Mar 2019 16:13:24 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1518 --- coders/jp2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coders/jp2.c b/coders/jp2.c index d4d68ab51..9478b1457 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -862,6 +862,7 @@ static MagickBooleanType WriteJP2Image(const ImageInfo *image_info,Image *image, /* 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; -- 2.40.0