Possible leak in xml-tree.c [IM 6.4.3-5]

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
dirving
Posts: 13
Joined: 2008-08-28T13:45:14-07:00

Possible leak in xml-tree.c [IM 6.4.3-5]

Post by dirving »

In xml-tree.c on line 1483 memory is allocated for a string located in processing_instructions[0]. In the DestroyXMLTree method on line 548 we start the loop through the processing_instructions array at [1] instead of [0] so the previously allocated string never gets torn down.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Possible leak in xml-tree.c [IM 6.4.3-5]

Post by magick »

Thanks for the problem report. We will have a fix in the ImageMagick subversion trunk by end-of-day.
Post Reply