GNOME Bugzilla – Bug 626559
librsvg crashes with SIGSEGV when opening broken SVG file
Last modified: 2011-11-06 13:29:43 UTC
When reading a broken SVG file (e.g. with a g element containing a style attribute that has an empty fill declaration), librsvg crashes. This bug was originally reported on Ubuntu Launchpad here: https://bugs.launchpad.net/ubuntu/+source/librsvg/+bug/608026 I created a minimal test case, which you will find here: http://launchpadlibrarian.net/52832080/test-608026.tgz The test case is written in Vala so here's how to compile and run it: tar zxvf test-608026.tgz valac -g --pkg librsvg-2.0 test-608026.vala ./test-608026 Finally, you will find a patch based on librsvg version 2.26.3 here: http://launchpadlibrarian.net/52832223/patch-608026.diff
Created attachment 168596 [details] [review] Patch in bzr diff format
Created attachment 195773 [details] test.svg Attaching the input SVG reproducing the bug as provided in the downstream bug. Still reproducible using librsvg 2.34.1.
Fixed on master.