-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rdar://117803684 ([5d1fa25f3fa41fc3] ASAN_SEGV | WebCore::RenderBox::…
…repaintLayerRectsForImage; WebCore::RenderBox::imageChanged; WebCore::CachedImage::notifyObservers) Reviewed by Matt Woodrow. This checks for a non-unexpected case where an Element has no direct layer to render to. * LayoutTests/fast/svg/svg_should_not_crash-expected.txt: Added. * LayoutTests/fast/svg/svg_should_not_crash.html: Added. * Source/WebCore/rendering/RenderBox.cpp: (WebCore::RenderBox::repaintLayerRectsForImage): Canonical link: https://commits.webkit.org/270487@main
- Loading branch information
1 parent
a6666b9
commit 64eea79
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
RenderSVGText {text} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script> | ||
function freememory() { | ||
} | ||
function jsfuzzer() { | ||
var00016 = document.createElementNS("http://www.w3.org/2000/svg", "text"); | ||
var00046 = var00016.style; | ||
var00046.setProperty("background", "url(data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7) 450%"); | ||
var00146 = svgvar00001.getRootNode(); | ||
var00146.replaceChild(var00016,var00146.childNodes[17%var00146.childNodes.length]); | ||
} | ||
</script> | ||
<body onload=jsfuzzer()> | ||
<svg id="svgvar00001" clip-rule="evenodd"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters