File ImageMagick-CVE-2019-13135.patch of Package ImageMagick.19146

diff --git a/coders/cut.c b/coders/cut.c
index 69f236276b..c4f2768cbe 100644
--- a/coders/cut.c
+++ b/coders/cut.c
@@ -552,6 +552,7 @@ static Image *ReadCUTImage(const ImageInfo *image_info,ExceptionInfo *exception)
   BImgBuff=(unsigned char *) AcquireQuantumMemory((size_t) ldblk,
     sizeof(*BImgBuff));  /*Ldblk was set in the check phase*/
   if(BImgBuff==NULL) goto NoMemory;
+  (void) memset(BImgBuff,0,(size_t) ldblk*sizeof(*BImgBuff));
 
   offset=SeekBlob(image,6 /*sizeof(Header)*/,SEEK_SET);
   if (offset < 0)

openSUSE Build Service is sponsored by