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

Fix svgcircle element node masking crash #3297

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ycarmon
Copy link
Contributor

@ycarmon ycarmon commented Jan 18, 2025

Added a simple check in SVGCircleElement::get_path if the layout_node is empty, if so then I simply return (Should the method return a closed Gfx::Path object instead?).

This PR fixes #879

check if the layout node in get_path is null or not
Add a test with a masked circle elment to trigger a crash reported in
LadybirdBrowser#879
@ycarmon ycarmon force-pushed the fix-svgcircle-element-node-masking-crash branch from 80bdf18 to 5316f48 Compare January 18, 2025 22:07
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 due to null layout node masking with SVGCircleElement
1 participant