Page 1 of 1

MagickWand, using rose: format

Posted: 2007-09-30T11:33:16-07:00
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?

Re: MagickWand, using rose: format

Posted: 2007-09-30T14:21:07-07:00
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.

Re: MagickWand, using rose: format

Posted: 2007-10-01T11:32:16-07:00
by mkoppanen
This also happens with the logo: -format.