identify hits an infinite loop with some SVG files.
Posted: 2009-11-19T01:33:43-07:00
When operating on some SVG files, imagemagick seems to enter an infinite loop, and creates an infinitely large file in /tmp/
A copy of an example SVG files causing the problem can be found here:
http://www.eisbox.net/tmp/graph.svg.zip
The following command is sufficient to trigger the bug:
# identify graph.svg
# convert --version
Version: ImageMagick 6.4.5 2009-06-04 Q16 OpenMP http://www.imagemagick.org
I have also tested some other versions of ImageMagick, and they behave similarly.
Unfortunately I cannot comment on the origin or correctness of the file; it was uploaded to a server which processes SVG files using ImageMagick. However, in the header, I find: Generated by graphviz version 2.25.20091109.0545 (20091109.0545)
The rsvg-convert utility is able to process the file without problems.
A copy of an example SVG files causing the problem can be found here:
http://www.eisbox.net/tmp/graph.svg.zip
The following command is sufficient to trigger the bug:
# identify graph.svg
# convert --version
Version: ImageMagick 6.4.5 2009-06-04 Q16 OpenMP http://www.imagemagick.org
I have also tested some other versions of ImageMagick, and they behave similarly.
Unfortunately I cannot comment on the origin or correctness of the file; it was uploaded to a server which processes SVG files using ImageMagick. However, in the header, I find: Generated by graphviz version 2.25.20091109.0545 (20091109.0545)
The rsvg-convert utility is able to process the file without problems.