Page 1 of 1

composite -tile overwrites end of string

Posted: 2009-02-17T22:48:04-07:00
by Jon
in processing the arg list -tile is replaced by -sans0 which is 1 char longer and which overwrites the allocated area (caught in vc6 debug version)

the problem is in wand/composite.c where you can fix it by replacing:
(void) CopyMagickString(argv+1,"sans0",MaxTextExtent);
with
(void) CloneString(&argv,(*option == '-') ? "-sans0" : "+sans0");

there are similar issues in:
wand/montage.c (-tile)
wand/display.c (-map)
want/animate.c (-map)

Re: composite -tile overwrites end of string

Posted: 2009-02-18T07:07:13-07:00
by magick
Thanks, we added your patch to the ImageMagick Subversion trunk, available sometime tomorrow.