Page MenuHomePhabricator

librsvg handles errors in path data incorrectly
Open, MediumPublic

Description

There's a discrepancy between how common browsers and librsvg render SVG files, which have path data with missing command parameters.

The path element implementation notes specify that "the SVG user agent shall render a ‘path’ element up to (but not including) the path command containing the first error in the path data specification". https://www.w3.org/TR/SVG11/implnote.html#PathElementImplementationNotes
Librsvg instead defaults missing parameters to zero and continues rendering.

Example: https://commons.wikimedia.org/wiki/File:Incorrect_path_error_handling.svg

Event Timeline

TilmannR created this task.Feb 11 2019, 4:55 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 11 2019, 4:55 PM
Aklapper moved this task from Backlog to Patch merged upstream on the Upstream board.

Cannot reproduce the problem locally running librsvg2-2.44.13.

jijiki triaged this task as Medium priority.Mar 11 2019, 6:37 AM
jijiki added a project: Thumbor.
AntiCompositeNumber moved this task from Backlog to Upstream on the Thumbor board.May 12 2020, 8:46 PM
toorich changed the status of subtask T193352: Update librsvg to ≥2.42.3 (2.44.10) from Stalled to Open.Jun 24 2020, 9:58 AM
Aklapper changed the status of subtask T193352: Update librsvg to ≥2.42.3 (2.44.10) from Open to Stalled.Jun 24 2020, 10:34 AM