1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

LibWeb: Do not crash inside SVGDecodedImageData on invalid SVG input

Return error when input svg is not valid and SVGSVGElement is not
present in the tree instead of doing svg_root nullptr dereference.

Fixes crash on https://apps.kde.org/en-gb/
This commit is contained in:
Aliaksandr Kalenik 2023-06-21 19:17:15 +03:00 committed by Andreas Kling
parent 33dbfa3281
commit 8c980cf75b
3 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1 @@
<!doctype html><img src="data:image/svg+xml;,some-garbage" style="display: block">