Crash when parsing invalid SVG containing "inf" attribute

Bug #1514292 reported by Nicholas Fraser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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
Revision history for this message
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
Revision history for this message
su_v (suv-lp) wrote :

Backtrace with debug build (r14434)

Revision history for this message
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
Revision history for this message
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).

Revision history for this message
Qantas94Heavy (qantas94heavy) wrote :
Changed in inkscape:
status: Triaged → Fix Released
milestone: 0.92 → 0.92.4
tbnorth (terry-n-brown)
tags: added: bug-migration
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.