Page 1 of 1

possible bug -draw floodfill IM 6.8.9.8 Q16 Mac OSX

Posted: 2014-10-25T15:00:07-07:00
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.

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

Posted: 2014-10-25T15:19:13-07:00
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.