]> granicus.if.org Git - imagemagick/commitdiff
Prevent memory use after free
authorCristy <urban-warrior@imagemagick.org>
Fri, 5 Aug 2016 20:35:07 +0000 (16:35 -0400)
committerCristy <urban-warrior@imagemagick.org>
Fri, 5 Aug 2016 20:35:07 +0000 (16:35 -0400)
ChangeLog
coders/pwp.c

index 0fd24b3753d2c958df87d4b730598ae8dfe97a3b..c43c094e3db0896403ebe2a79426389d70a0381d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
   * Evaluate lazy pixel cache morphology to prevent buffer overflow (bug report
     from Ibrahim M. El-Sayed).
   * Prevent buffer overflow (bug report from Max Thrane).
+  * Prevent memory use after free (reference
+    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=30245).
+
 
 2016-07-30  7.0.2-6 Cristy  <quetzlzacatenango@image...>
   * Release ImageMagick version 7.0.2-6, GIT revision 18651:df24175:20160729.
index 1aa033ee8e8ffc2fc0ea3e3dfd965e340f1ad620..03df516361b700a6fb18445d470ab1317e0ea079 100644 (file)
@@ -247,8 +247,6 @@ static Image *ReadPWPImage(const ImageInfo *image_info,ExceptionInfo *exception)
     (void) close(unique_file);
   (void) RelinquishUniqueFileResource(read_info->filename);
   read_info=DestroyImageInfo(read_info);
-  (void) CloseBlob(pwp_image);
-  pwp_image=DestroyImage(pwp_image);
   if (EOFBlob(image) != MagickFalse)
     {
       char