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.
mkoppanen
Posts: 309 Joined: 2007-06-09T07:06:32-07:00
Post
by mkoppanen » 2007-09-30T11:33:16-07:00
Consider this code:
Code: Select all
#include <stdio.h>
#include <wand/magick-wand.h>
int main()
{
MagickWand *magick_wand;
unsigned char *image;
magick_wand = NewMagickWand();
size_t length;
MagickReadImage( magick_wand, "rose:" );
MagickSetSize( magick_wand, 200, 200 );
image = MagickGetImageBlob( magick_wand, &length );
image = (unsigned char *)MagickRelinquishMemory( image );
return 0;
}
If i replace rose: with for example netscape: It does not crash during MagickRelinquishMemory. Am I doing something wrong here or is this a bug?
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2007-09-30T14:21:07-07:00
We can reproduce the problem you posted and will have a fix in the next release of ImageMagick. Thanks for alerting us to the problem.
mkoppanen
Posts: 309 Joined: 2007-06-09T07:06:32-07:00
Post
by mkoppanen » 2007-10-01T11:32:16-07:00
This also happens with the logo: -format.