MagickWand, using rose: format

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
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

MagickWand, using rose: format

Post by mkoppanen »

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?
Mikko Koppanen
My blog: http://valokuva.org
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: MagickWand, using rose: format

Post by magick »

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

Re: MagickWand, using rose: format

Post by mkoppanen »

This also happens with the logo: -format.
Mikko Koppanen
My blog: http://valokuva.org
Post Reply