You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
GraphicsMagick/GraphicsMagick-CVE-2017-111...

24 lines
935 B

# HG changeset patch
# User Bob Friesenhahn <bfriesen@GraphicsMagick.org>
# Date 1499536785 18000
# Node ID 4d0baa77245b386754cd65bbdb7b0937088cb3de
# Parent b4139088b49afaad8ac76b74f8a10ad5a63d3f3b
JNG: Fix double frees caused by changeset 15060:d445af60a8d5 commited on 2017-07-06
diff -r b4139088b49a -r 4d0baa77245b coders/png.c
--- a/coders/png.c Sat Jul 08 09:20:58 2017 -0500
+++ b/coders/png.c Sat Jul 08 12:59:45 2017 -0500
@@ -3622,6 +3622,10 @@
(void) LiberateUniqueFileResource(alpha_image->filename);
DestroyJNG(NULL,color_image,color_image_info,
alpha_image,alpha_image_info);
+ color_image = (Image *)NULL;
+ color_image_info = (ImageInfo *) NULL;
+ alpha_image = (Image *)NULL;
+ alpha_image_info = (ImageInfo *) NULL;
DestroyImage(jng_image);
jng_image = (Image *)NULL;
}