Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More robust handling of SVG use tags #1401

Merged
merged 1 commit into from
Jul 23, 2021
Merged

Conversation

pbregener
Copy link
Contributor

Ignore use tags in SVGs that have invalid targets.

Instead of calling svg.stream.push_state() early, only call it when we are sure that the stream should indeed be modified.
Also, from what I could see the error handling calling svg.stream.restore() was bound to fail as well (should be pop_state() instead?).

Feel free to ignore and close if I missed something and things are not as easy as I thought they were 🙈

Fixes #1399

@liZe
Copy link
Member

liZe commented Jul 23, 2021

Perfect, thank you!

@liZe liZe added this to the 53.0 milestone Jul 23, 2021
@liZe liZe merged commit a5b9db5 into Kozea:master Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SVG: Crash when referencing (use) non-existing elements
2 participants