Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsc_fuz/wktr: null ptr deref in WebCore::SVGResources::buildCachedRes…
…ources(WebCore::RenderElement const&, WebCore::RenderStyle const&) + 368 (SVGResources.cpp:251) https://bugs.webkit.org/show_bug.cgi?id=263224 rdar://116386835. Reviewed by Chris Dumez. Modified SVGResources::buildCachedResources API in order to consider passed svg with NULL mask-image. Test : LayoutTests/svg/crash-svg-null-maskimage.html * Source/WebCore/rendering/svg/SVGResources.cpp : Modified to check if the maskImage variable is not NULL before dereferrencing. * LayoutTests/svg/crash-svg-null-maskimage.html : Added test case. * LayoutTests/svg/crash-svg-null-maskimage-expected.txt : Added test expected file. Canonical link: https://commits.webkit.org/269561@main
- Loading branch information