Crash when opening SVG file with dangling feBlend or feFlood filters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Any SVG file produced by the SAS (Statistical Analysis System) 9.3 statistical software, crashes Inkscape 0.92.1 when open.
This can be reduced to a bug on dangling filters. It may be invalid, but it should not crash Inkscape.
Steps to reproduce :
1) Install Inkscape 0.92.1 on Windows 7 64 bits (not tested on other systems)
2) Create a bug.svg file containing the following code:
<svg xmlns="http://
<feBlend></feBlend>
</svg>
3) Open this SVG file with Inkscape
It produces this error message and closes immediately :
-------
Microsoft Visual C++ Runtime Library
-------
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
-------
Expected behavior : Open Inkscape with a blank page.
Same bug for the following file:
<svg xmlns="http://
<feFlood></feFlood>
</svg>
confirmed on Windows 10, Inkscape 0.92.1 r15371, using the code:
<svg xmlns="http:// www.w3. org/2000/ svg" version="1.1"> </feBlend>
<feBlend>
</svg>
the crash message is: \Temp\Inkscape\ 0.92.1\ inkscape- 0.92.1_ 32\src\ sp-namedview. cpp:1068: SPNamedView* sp_document_ namedview( SPDocument* , const gchar*): assertion failed: (nv != NULL)
ERROR:E:
the crash can be avoided by wrapping the feBlend in a <filter> tag, as shown in the attachewd file, which does not crash.