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

Changeset 245923 in webkit


Ignore:
Timestamp:
May 30, 2019, 5:30:07 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r245464. rdar://problem/51264866

Hardening: Prevent FrameLoader crash due to SetForScope
https://bugs.webkit.org/show_bug.cgi?id=197458
<rdar://problem/50368338>

Reviewed by Chris Dumez.

Since SetForScope takes action during a function returns, it might cause
a crash if its scope is broader than the value it is resetting.

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::loadDifferentDocumentItem):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245464 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-607-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/Source/WebCore/ChangeLog

    r245922 r245923  
     12019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r245464. rdar://problem/51264866
     4
     5    Hardening: Prevent FrameLoader crash due to SetForScope
     6    https://bugs.webkit.org/show_bug.cgi?id=197458
     7    <rdar://problem/50368338>
     8   
     9    Reviewed by Chris Dumez.
     10   
     11    Since SetForScope takes action during a function returns, it might cause
     12    a crash if its scope is broader than the value it is resetting.
     13   
     14    * loader/FrameLoader.cpp:
     15    (WebCore::FrameLoader::loadDifferentDocumentItem):
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2019-05-17  Brent Fulgham  <bfulgham@apple.com>
     20
     21            Hardening: Prevent FrameLoader crash due to SetForScope
     22            https://bugs.webkit.org/show_bug.cgi?id=197458
     23            <rdar://problem/50368338>
     24
     25            Reviewed by Chris Dumez.
     26
     27            Since SetForScope takes action during a function returns, it might cause
     28            a crash if its scope is broader than the value it is resetting.
     29
     30            * loader/FrameLoader.cpp:
     31            (WebCore::FrameLoader::loadDifferentDocumentItem):
     32
    1332019-05-30  Kocsen Chung  <kocsen_chung@apple.com>
    234
  • branches/safari-607-branch/Source/WebCore/loader/FrameLoader.cpp

    r244118 r245923  
    36673667    RELEASE_LOG_IF_ALLOWED("loadDifferentDocumentItem: frame load started (frame = %p, main = %d)", &m_frame, m_frame.isMainFrame());
    36683668
     3669    Ref<Frame> protectedFrame(m_frame);
     3670
    36693671    // History items should not be reported to the parent.
    36703672    m_shouldReportResourceTimingToParentFrame = false;
Note: See TracChangeset for help on using the changeset viewer.