File GraphicsMagick-CVE-2019-16709.patch of Package GraphicsMagick.openSUSE_Leap_15.0_Update

Index: GraphicsMagick-1.3.29/coders/dps.c
===================================================================
--- GraphicsMagick-1.3.29.orig/coders/dps.c	2017-12-09 21:02:44.000000000 +0100
+++ GraphicsMagick-1.3.29/coders/dps.c	2019-10-08 11:55:03.901543858 +0200
@@ -168,6 +168,7 @@ static Image *ReadDPSImage(const ImageIn
   status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
   if (status == False)
     {
+      DestroyImage(image);
       (void) LogMagickEvent(CoderEvent,GetMagickModule(),"failed to open blob!");
       return((Image *) NULL);
     }
openSUSE Build Service is sponsored by