Changeset 235416 in webkit
- Timestamp:
- Aug 27, 2018, 5:37:17 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/text/rtl-justification-expected.html (added)
-
LayoutTests/fast/text/rtl-justification.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/WidthIterator.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r235415 r235416 1 2018-08-27 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Null pointer deref in WidthIterator 4 https://bugs.webkit.org/show_bug.cgi?id=188993 5 6 Reviewed by Brent Fulgham. 7 8 * fast/text/rtl-justification-expected.html: Added. 9 * fast/text/rtl-justification.html: Added. 10 1 11 2018-08-27 Sihui Liu <sihui_liu@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r235414 r235416 1 2018-08-27 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Null pointer deref in WidthIterator 4 https://bugs.webkit.org/show_bug.cgi?id=188993 5 6 Reviewed by Brent Fulgham. 7 8 Test: fast/text/rtl-justification.html 9 10 We simply need to guard glyphBuffer like we do in the rest of the function. 11 12 * platform/graphics/WidthIterator.cpp: 13 (WebCore::WidthIterator::advanceInternal): 14 1 15 2018-08-27 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/WidthIterator.cpp
r234808 r235416 346 346 } 347 347 348 if ( leftoverJustificationWidth) {348 if (glyphBuffer && leftoverJustificationWidth) { 349 349 if (m_forTextEmphasis) 350 350 glyphBuffer->add(lastFontData->zeroWidthSpaceGlyph(), lastFontData, leftoverJustificationWidth, m_run.length() - 1);
Note:
See TracChangeset
for help on using the changeset viewer.