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

Changeset 267687 in webkit


Ignore:
Timestamp:
Sep 27, 2020, 1:00:52 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r267540. rdar://problem/69593993

CrashTracer: com.apple.WebKit.Networking in NetworkSession::firstPartyHostCNAMEDomain() code
https://bugs.webkit.org/show_bug.cgi?id=216934
<rdar://problem/69216768>

Reviewed by Alex Christensen.

Add a check for a valid key.

  • NetworkProcess/NetworkSession.cpp: (WebKit::NetworkSession::firstPartyHostCNAMEDomain):

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

Location:
branches/safari-610-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610-branch/Source/WebKit/ChangeLog

    r267684 r267687  
     12020-09-27  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r267540. rdar://problem/69593993
     4
     5    CrashTracer: com.apple.WebKit.Networking in NetworkSession::firstPartyHostCNAMEDomain() code
     6    https://bugs.webkit.org/show_bug.cgi?id=216934
     7    <rdar://problem/69216768>
     8   
     9    Reviewed by Alex Christensen.
     10   
     11    Add a check for a valid key.
     12   
     13    * NetworkProcess/NetworkSession.cpp:
     14    (WebKit::NetworkSession::firstPartyHostCNAMEDomain):
     15   
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2020-09-24  Kate Cheney  <katherine_cheney@apple.com>
     20
     21            CrashTracer: com.apple.WebKit.Networking in NetworkSession::firstPartyHostCNAMEDomain() code
     22            https://bugs.webkit.org/show_bug.cgi?id=216934
     23            <rdar://problem/69216768>
     24
     25            Reviewed by Alex Christensen.
     26
     27            Add a check for a valid key.
     28
     29            * NetworkProcess/NetworkSession.cpp:
     30            (WebKit::NetworkSession::firstPartyHostCNAMEDomain):
     31
    1322020-09-27  Alan Coon  <alancoon@apple.com>
    233
  • branches/safari-610-branch/Source/WebKit/NetworkProcess/NetworkSession.cpp

    r266427 r267687  
    298298{
    299299#if HAVE(CFNETWORK_CNAME_AND_COOKIE_TRANSFORM_SPI)
     300    if (!decltype(m_firstPartyHostCNAMEDomains)::isValidKey(firstPartyHost))
     301        return WTF::nullopt;
     302
    300303    auto iterator = m_firstPartyHostCNAMEDomains.find(firstPartyHost);
    301304    if (iterator == m_firstPartyHostCNAMEDomains.end())
Note: See TracChangeset for help on using the changeset viewer.