GNOME Bugzilla – Bug 155433
librsvg-2.8.1 segfaults on invalid input (polygon with no points)
Last modified: 2004-12-22 21:47:04 UTC
If you create an SVG file containing a polygon with no point data (ie, points=""), librsvg will segfault instead of gracefully ignoring the invalid object. This occurs on both the commandline rsvg(-view) apps, and when using Eye of Gnome, which links to this library. It definately seems like a bad thing for a base Gnome library like this to choke and die on invalid input. Here's some simple svg code that triggers the problem when run through EOG or rsvg-view: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"> <polygon stroke="none" fill="#000000" points="" /> </g> </svg> Putting in any valid point data into points="" causes it to be displayed properly. I've got a downstream bug with Gentoo about this issue, available at: http://bugs.gentoo.org/show_bug.cgi?id=67583 According to the linked guidelines, this (crashing) would seem to fall under Severity: critical, but I'm just putting it at major for the time being. If I was too cautious, someone can feel free to upgrade it to critical. ;)
the bug is fixed. please keep the editorializing to a minimum. thank you for the report.
mark fixed
Sorry, I'm just used to the Gentoo bugzilla, where everyone's a little more chatty about their bug reporting. ;) In any case, could you let me know which release this is fixed in, so we can get it into Gentoo ASAP?