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

Changeset 245464 in webkit


Ignore:
Timestamp:
May 17, 2019, 9:03:36 AM (7 years ago)
Author:
Brent Fulgham
Message:

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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r245460 r245464  
     12019-05-17  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Hardening: Prevent FrameLoader crash due to SetForScope
     4        https://bugs.webkit.org/show_bug.cgi?id=197458
     5        <rdar://problem/50368338>
     6
     7        Reviewed by Chris Dumez.
     8
     9        Since SetForScope takes action during a function returns, it might cause
     10        a crash if its scope is broader than the value it is resetting.
     11
     12        * loader/FrameLoader.cpp:
     13        (WebCore::FrameLoader::loadDifferentDocumentItem):
     14
    1152019-05-16  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/loader/FrameLoader.cpp

    r244695 r245464  
    36973697    RELEASE_LOG_IF_ALLOWED("loadDifferentDocumentItem: frame load started (frame = %p, main = %d)", &m_frame, m_frame.isMainFrame());
    36983698
     3699    Ref<Frame> protectedFrame(m_frame);
     3700
    36993701    // History items should not be reported to the parent.
    37003702    m_shouldReportResourceTimingToParentFrame = false;
Note: See TracChangeset for help on using the changeset viewer.