File GraphicsMagick-CVE-2019-7397.patch of Package GraphicsMagick.openSUSE_Leap_15.0_Update
Index: GraphicsMagick-1.3.29/coders/pdf.c
===================================================================
--- GraphicsMagick-1.3.29.orig/coders/pdf.c 2019-02-11 19:05:36.013749175 +0100
+++ GraphicsMagick-1.3.29/coders/pdf.c 2019-02-11 19:12:12.743653975 +0100
@@ -1375,6 +1375,7 @@ static unsigned int WritePDFImage(const
if (!status)
{
CloseBlob(image);
+ MagickFreeMemory(xref);
return(False);
}
break;
@@ -1478,6 +1479,7 @@ static unsigned int WritePDFImage(const
if (!status)
{
CloseBlob(image);
+ MagickFreeMemory(xref);
return(False);
}
break;