Crash when parsing invalid SVG containing "inf" attribute

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

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);" />
</svg>

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 http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/14639).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers