[go: up one dir, main page]

Page MenuHomePhabricator

librsvg handles errors in path data incorrectly
Closed, ResolvedPublic

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

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.
TheDJ claimed this task.
TheDJ subscribed.

Confirmed resolved