Crash when parsing invalid SVG containing "inf" attribute

Bug #1514292 reported by Nicholas Fraser on 2015-11-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Inkscape crashes when trying to open an SVG file containing the following:

<svg width="1280.0" height="640.0">
<line x1="642.4697456162015" y1="+inf.0" x2="637.5302543837985" y2="-inf.0" style="stroke:rgb(255,0,0);" />

This is obviously invalid SVG, but Inkscape should complain about it being corrupt rather than crashing.

Inkscape 0.91 r13725 (Oct 2 2015)

description: updated
su_v (suv-lp) wrote :

On OS X 10.7.5:
- crash not reproduced with Inkscape 0.48.5 r10040
- crash reproduced with Inkscape 0.91 r13725, 0.91+devel r14452

tags: added: 2geom crash regression
Changed in inkscape:
importance: Undecided → High
milestone: none → 0.92
status: New → Confirmed
su_v (suv-lp) wrote :

Backtrace with debug build (r14434)

jazzynico (jazzynico) wrote :

Also reproduced on Xubuntu 15.10, Inkscape trunk rev. 14504.
Checking attributes in the SVG output preferences doesn't help.

Changed in inkscape:
status: Confirmed → Triaged
jazzynico (jazzynico) wrote :

Inkscape still crashes on Windows XP (32-bit), Inkscape 14648 (after the 2geom update rev. 14639, see

Qantas94Heavy (qantas94heavy) wrote :
Changed in inkscape:
status: Triaged → Fix Released
milestone: 0.92 → 0.92.4
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers