Bug 305821 - Patch for memory leak in ImageMagick 6.3.5-9
Patch for memory leak in ImageMagick 6.3.5-9
Product: Fedora
Classification: Fedora
Component: ImageMagick (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Norm Murray
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-09-25 14:39 EDT by Cristy
Modified: 2008-04-26 04:09 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-04-26 04:09:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Cristy 2007-09-25 14:39:33 EDT
There is a small memory leak when cloning strings in ImageMagick 6.3.5-9.  The
patch is already in ImageMagick 6.3.6-0 scheduled for release on September 29. 
To patch ImageMagick 6.3.5-9, remove

   *destination=(char *) NULL; 

in CloneString() of magick/string.c.  The results should look like this:

  if (source == (const char *) NULL)
      if (*destination != (char *) NULL)
  if (*destination == (char *) NULL)
  if (~length < MaxTextExtent)
  *destination=(char *) ResizeQuantumMemory(*destination,length+MaxTextExtent,
Comment 1 Norm Murray 2007-09-26 01:17:58 EDT
Thanks for the heads up. Will get this into my next build. 
Comment 2 Bug Zapper 2008-04-04 09:55:01 EDT
Based on the date this bug was created, it appears to have been reported
during the development of Fedora 8. In order to refocus our efforts as
a project we are changing the version of this bug to '8'.

If this bug still exists in rawhide, please change the version back to
(If you're unable to change the bug's version, add a comment to the bug
and someone will change it for you.)

Thanks for your help and we apologize for the interruption.

The process we're following is outlined here:

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.
Comment 3 Hans de Goede 2008-04-26 04:09:21 EDT
Short intro: I'm a new co-maintainer of ImageMagick and as such walking through
all open bugs.

This bug is fixed in rawhide / F-9 closing.

Note You need to log in before you can comment on or make changes to this bug.