GNOME Bugzilla – Bug 686346
[patch] Finish the implementation of "load policies"
Last modified: 2017-12-13 17:55:59 UTC
Created attachment 226707 [details] [review] The patch In January, I discussed with Christian the idea of a --no-external-files flag to rsvg-convert to support the processing of untrusted files, for example on web servers. I promised to submit a patch, but never did. A week after our conversation, Christian committed some initial work on the concept, in a2e869cb700c13804056820fd4afa215e551b9c5 . The attached patch aims to complete that work, following on from Christian's start. I added --no-external-files and --load-policy=<policy> command-line options to rsvg-convert, and introduced two additional load policies in addition to the "all permissive" one that Christian introduced. The patch is generated by git format-patch, for use with git am.
Created attachment 226720 [details] [review] Patch v2 Fixed uninitialised automatic variable no_external_files, discovered during testing.
I like to see the SVG integration spec implemented instead: https://svgwg.org/specs/integration/
Tim: Any plans / capacity to rework the patch to implement the SVG integration spec instead?
No.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/67.