possible bug -draw floodfill IM 6.8.9.8 Q16 Mac OSX

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug -draw floodfill IM 6.8.9.8 Q16 Mac OSX

Post by fmw42 »

I am getting a segment stack overflow message for the following case.

The same occurs for miff.

Input:
http://www.fmwconcepts.com/misc_tests/f ... g/tmpl.png

Code: Select all

identify tmpl.png
tmpl.png PNG 3015x2010 3015x2010+0+0 8-bit sRGB 2c 122KB 0.000u 0:00.009


xcentr=1501
ycentr=997
convert tmpl.png +repage -fill red -draw "color $xcentr,$ycentr floodfill" -alpha off tmpl_red.png
convert: segment stack overflow `tmpl.png' @ error/paint.c/FloodfillPaintImage/298.
convert: non-conforming drawing primitive definition `color' @ error/draw.c/DrawImage/3192.
convert: segment stack overflow `tmpl.png' @ error/paint.c/FloodfillPaintImage/298.
convert: non-conforming drawing primitive definition `color' @ error/draw.c/DrawImage/3192.
convert: segment stack overflow `tmpl.png' @ error/paint.c/FloodfillPaintImage/298.
convert: non-conforming drawing primitive definition `color' @ error/draw.c/DrawImage/3192.


The input image is binary (b/w) and the color at the floodfill point is gray(255). Most of the image is white with some black areas and speckle.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -draw floodfill IM 6.8.9.8 Q16 Mac OSX

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.8.9-10 Beta, available by sometime tomorrow. Thanks.
Post Reply