Changeset 235485 in webkit
- Timestamp:
- Aug 29, 2018, 4:35:30 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/text/text-combine-surroundContents-crash-expected.txt (added)
-
LayoutTests/fast/text/text-combine-surroundContents-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/InlineTextBox.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r235484 r235485 1 2018-08-29 Daniel Bates <dabates@apple.com> 2 3 REGRESSION (r226138): WebCore::subdivide() may return an empty vector; Web process can crash when performing find in Epiphany 4 https://bugs.webkit.org/show_bug.cgi?id=184390 5 <rdar://problem/41804994> 6 And 7 <rdar://problem/39771867> 8 9 Reviewed by Simon Fraser. 10 11 Add a test to ensure that we do not crash when painting an empty inline text box associated 12 with combined text. 13 14 * fast/text/text-combine-surroundContents-crash-expected.txt: Added. 15 * fast/text/text-combine-surroundContents-crash.html: Added. 16 1 17 2018-08-29 Youenn Fablet <youenn@apple.com> 2 18 -
trunk/Source/WebCore/ChangeLog
r235484 r235485 1 2018-08-29 Daniel Bates <dabates@apple.com> 2 3 REGRESSION (r226138): WebCore::subdivide() may return an empty vector; Web process can crash when performing find in Epiphany 4 https://bugs.webkit.org/show_bug.cgi?id=184390 5 <rdar://problem/41804994> 6 And 7 <rdar://problem/39771867> 8 9 Reviewed by Simon Fraser. 10 11 Speculative fix for Epiphany. 12 13 In theory, WebCore::subdivide() should never return an empty vector - no subdivisions - as such a 14 result represents a programmer error. In practice, InlineTextBox can invoke WebCore::subdivide() 15 such that it returns an empty vector. One way this can happen is when subdividing an empty inline 16 text box associated with combined text (RenderCombineText). For now we add a check to bail out of 17 resolving the style of subdivisions when WebCore::subdivide() returns no subdivisions. In a 18 subsequent patch we will look to assert that WebCore::subdivide() always returns subdivisions. 19 20 Test: fast/text/text-combine-surroundContents-crash.html 21 22 * rendering/InlineTextBox.cpp: 23 (WebCore::InlineTextBox::subdivideAndResolveStyle): 24 1 25 2018-08-29 Youenn Fablet <youenn@apple.com> 2 26 -
trunk/Source/WebCore/rendering/InlineTextBox.cpp
r235378 r235485 793 793 794 794 auto markedTexts = subdivide(textsToSubdivide); 795 if (markedTexts.isEmpty()) 796 return { }; 795 797 796 798 // Compute frontmost overlapping styled marked texts.
Note:
See TracChangeset
for help on using the changeset viewer.