Changeset 141009 in webkit


Ignore:
Timestamp:
Jan 28, 2013, 2:28:21 PM (13 years ago)
Author:
jchaffraix@webkit.org
Message:

Crash inside RenderBlock::layoutRunsAndFloatsInRange in the widow code
https://bugs.webkit.org/show_bug.cgi?id=108084

Reviewed by Dean Jackson.

This is a blind fix based on the code and Chromium's stack-traces.

Unfortunately no new test as I couldn't get a local reproduction.

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::layoutRunsAndFloatsInRange):
Added a missing NULL-check: the previous 'while' finish if |lineBox|
is NULL and we don't want to crash in this case.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r141007 r141009  
     12013-01-28  Julien Chaffraix  <jchaffraix@webkit.org>
     2
     3        Crash inside RenderBlock::layoutRunsAndFloatsInRange in the widow code
     4        https://bugs.webkit.org/show_bug.cgi?id=108084
     5
     6        Reviewed by Dean Jackson.
     7
     8        This is a blind fix based on the code and Chromium's stack-traces.
     9
     10        Unfortunately no new test as I couldn't get a local reproduction.
     11
     12        * rendering/RenderBlockLineLayout.cpp:
     13        (WebCore::RenderBlock::layoutRunsAndFloatsInRange):
     14        Added a missing NULL-check: the previous 'while' finish if |lineBox|
     15        is NULL and we don't want to crash in this case.
     16
    1172013-01-28  Tony Chang  <tony@chromium.org>
    218
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r140978 r141009  
    16681668
    16691669        // If there were no breaks in the block, we didn't create any widows.
    1670         if (!lineBox->isFirstAfterPageBreak() || lineBox == firstLineInBlock)
     1670        if (!lineBox || !lineBox->isFirstAfterPageBreak() || lineBox == firstLineInBlock)
    16711671            return;
    16721672
Note: See TracChangeset for help on using the changeset viewer.