Skip to content

Commit

Permalink
Prevent memory use after free
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Aug 5, 2016
1 parent 989f9f8 commit ecc03a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
@@ -1,5 +1,7 @@
2016-08-03 6.9.5-5 Cristy <quetzlzacatenango@image...>
* 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 6.9.5-4 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 6.9.5-4, GIT revision 10973:a00fa93:20160729.
Expand Down
2 changes: 0 additions & 2 deletions coders/pwp.c
Expand Up @@ -248,8 +248,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
Expand Down

0 comments on commit ecc03a2

Please sign in to comment.