Empty txt: infinite loop

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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Empty txt: infinite loop

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Empty txt: infinite loop

Post 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.
Post Reply