After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 608575 - Hang on particular SVG input
Hang on particular SVG input
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2010-01-31 05:05 UTC by Chong Yidong
Modified: 2010-04-07 10:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (3.25 KB, patch)
2010-04-03 00:45 UTC, Hiroyuki Ikezoe
committed Details | Review

Description Chong Yidong 2010-01-31 05:05:31 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>
Comment 1 Hiroyuki Ikezoe 2010-04-03 00:45:45 UTC
Created attachment 157781 [details] [review]
Fix

This is because linearGradient2 is a self-reference, so librsvg goes into an infinite loop.