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

Changeset 280831 in webkit


Ignore:
Timestamp:
Aug 10, 2021, 2:22:45 AM (5 years ago)
Author:
Adrian Perez de Castro
Message:

Merge r274027 - [IPC Hardening] Protect against bad navigationID in WebPageProxy::didDestroyNavigation()
https://bugs.webkit.org/show_bug.cgi?id=222842
<rdar://problem/75119560>

Reviewed by Darin Adler.

  • UIProcess/WebNavigationState.h:
  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didDestroyNavigation):

Location:
releases/WebKitGTK/webkit-2.32/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.32/Source/WebKit/ChangeLog

    r280293 r280831  
     12021-03-05  Chris Dumez  <cdumez@apple.com>
     2
     3        [IPC Hardening] Protect against bad navigationID in WebPageProxy::didDestroyNavigation()
     4        https://bugs.webkit.org/show_bug.cgi?id=222842
     5        <rdar://problem/75119560>
     6
     7        Reviewed by Darin Adler.
     8
     9        * UIProcess/WebNavigationState.h:
     10        * UIProcess/WebPageProxy.cpp:
     11        (WebKit::WebPageProxy::didDestroyNavigation):
     12
    1132021-07-23  Adrian Perez de Castro  <aperez@igalia.com>
    214
  • releases/WebKitGTK/webkit-2.32/Source/WebKit/UIProcess/WebNavigationState.h

    r273023 r280831  
    6868    }
    6969
     70    using NavigationMap = HashMap<uint64_t, RefPtr<API::Navigation>>;
     71
    7072private:
    71     HashMap<uint64_t, RefPtr<API::Navigation>> m_navigations;
     73    NavigationMap m_navigations;
    7274    uint64_t m_navigationID { 0 };
    7375};
  • releases/WebKitGTK/webkit-2.32/Source/WebKit/UIProcess/WebPageProxy.cpp

    r280136 r280831  
    43834383void WebPageProxy::didDestroyNavigation(uint64_t navigationID)
    43844384{
     4385    MESSAGE_CHECK(m_process, WebNavigationState::NavigationMap::isValidKey(navigationID));
     4386
    43854387    PageClientProtector protector(pageClient());
    43864388
     
    43894391        return;
    43904392
    4391     // FIXME: Message check the navigationID.
    43924393    m_navigationState->didDestroyNavigation(navigationID);
    43934394}
Note: See TracChangeset for help on using the changeset viewer.