Inkscape crashes if SVG contains an invalid "file:" URI
Bug #1660142 reported by
Patrick Storz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Patrick Storz | ||
0.92.x |
Fix Released
|
High
|
Patrick Storz |
Bug Description
When an <image> references a file with an invalid "file:" URI Inkscape crashes instead of ignoring the invalid URI.
Minimal testcase:
<svg xmlns="http://
<image width="10" height="10" xlink:href=
</svg>
The following error is thrown on the console:
"terminate called after throwing an instance of 'Glib::
Reproduced here with Inkscape 0.92.0 r15299 (64-bit) on Windows 10.
Could someone check if Linux/Mac builds are affected, too?
tags: | added: crash opening |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Note that a file URI should have the form hostname/ path/to/ file.txt
file://
Or alternatively (hostname=localhost is assumed) /path/to/ file.txt
file://
Inkscape seems to crash whenever the "file://hostname/" or "file:///" format is not followed.