⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236109 in webkit


Ignore:
Timestamp:
Sep 18, 2018, 2:16:33 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r235416 - Null pointer deref in WidthIterator
https://bugs.webkit.org/show_bug.cgi?id=188993

Reviewed by Brent Fulgham.

Source/WebCore:

Test: fast/text/rtl-justification.html

We simply need to guard glyphBuffer like we do in the rest of the function.

  • platform/graphics/WidthIterator.cpp:

(WebCore::WidthIterator::advanceInternal):

LayoutTests:

  • fast/text/rtl-justification-expected.html: Added.
  • fast/text/rtl-justification.html: Added.
Location:
releases/WebKitGTK/webkit-2.22
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.22/LayoutTests/ChangeLog

    r236108 r236109  
     12018-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
    1112018-08-27  Youenn Fablet  <youenn@apple.com>
    212
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog

    r236108 r236109  
     12018-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
    1152018-08-27  Youenn Fablet  <youenn@apple.com>
    216
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/WidthIterator.cpp

    r234808 r236109  
    346346    }
    347347
    348     if (leftoverJustificationWidth) {
     348    if (glyphBuffer && leftoverJustificationWidth) {
    349349        if (m_forTextEmphasis)
    350350            glyphBuffer->add(lastFontData->zeroWidthSpaceGlyph(), lastFontData, leftoverJustificationWidth, m_run.length() - 1);
Note: See TracChangeset for help on using the changeset viewer.