GNOME Bugzilla – Bug 608575
Hang on particular SVG input
Last modified: 2010-04-07 10:32:46 UTC
An SVG image with the following contents appears to hang librsvg. Emacs, eog, and gqview all hang. This was tested with librsvg 2.26.0-0ubuntu1 from the Ubuntu distribution. <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="200" height="200"> <defs> <linearGradient id="linearGradient2" xlink:href="#linearGradient2"/> </defs> <g> <rect width="100%" height="100%" style="fill:url(#linearGradient2)"/> </g> </svg>
Created attachment 157781 [details] [review] Fix This is because linearGradient2 is a self-reference, so librsvg goes into an infinite loop.
Pushed. http://git.gnome.org/browse/librsvg/commit/?id=cc027e5400ae901c7bbb892dade404fea83e7d1f