Page 1 of 1

Empty txt: infinite loop

Posted: 2014-02-06T14:27:13-07:00
by snibgo
When x.txt contains ...

Code: Select all

# ImageMagick pixel enumeration: 0,1,65535,srgba
... ie no pixels at all, the command ...

Code: Select all

convert x.txt x.png
... goes into an infinite loop, eating more and more memory. I suppose it would eventually crash. I suggest a quick fatal error would be more graceful.

Re: Empty txt: infinite loop

Posted: 2014-02-06T17:01:23-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.8-5 Beta, available by sometime tomorrow. Thanks.