composite -tile overwrites end of string

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
Jon

composite -tile overwrites end of string

Post 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)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: composite -tile overwrites end of string

Post by magick »

Thanks, we added your patch to the ImageMagick Subversion trunk, available sometime tomorrow.
Post Reply