mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:07:34 +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:
parent
33dbfa3281
commit
8c980cf75b
3 changed files with 8 additions and 0 deletions
1
Tests/LibWeb/Layout/input/svg/svg-as-image-invalid.html
Normal file
1
Tests/LibWeb/Layout/input/svg/svg-as-image-invalid.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!doctype html><img src="data:image/svg+xml;,some-garbage" style="display: block">
|
Loading…
Add table
Add a link
Reference in a new issue