Crash opening svg contains invalid stylesheet rule with pseudo class
Summary:
Inkscape crashes if open a svg file containing syntactically ill-formed CSS rule with pseudo class:
<style>:a</style>
Steps to reproduce:
- open Inkscape
- open the attached svg
What happened?
Inkscape crashes
$ inkscape test.svg
Shortcut::read: invalid verb: DialogSpellcheck
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
Segmentation fault
What should have happened?
No crash
Sample attachments:
Version info
Inkscape 1.1.2 (1:1.1+202202050950+0a00cf5339)
GLib version: 2.64.6
GTK version: 3.24.20
glibmm version: 2.64.2
gtkmm version: 3.24.2
libxml2 version: 2.9.10
libxslt version: 1.1.34
Cairo version: 1.16.0
Pango version: 1.44.7
HarfBuzz version: 2.6.4
Poppler version: 0.86.1
OS version: Ubuntu 20.04.4 LTS