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

Changeset 267540 in webkit


Ignore:
Timestamp:
Sep 24, 2020, 11:29:21 AM (6 years ago)
Author:
Kate Cheney
Message:

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

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r267536 r267540  
     12020-09-24  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        CrashTracer: com.apple.WebKit.Networking in NetworkSession::firstPartyHostCNAMEDomain() code
     4        https://bugs.webkit.org/show_bug.cgi?id=216934
     5        <rdar://problem/69216768>
     6
     7        Reviewed by Alex Christensen.
     8
     9        Add a check for a valid key.
     10
     11        * NetworkProcess/NetworkSession.cpp:
     12        (WebKit::NetworkSession::firstPartyHostCNAMEDomain):
     13
    1142020-09-24  Ryan Haddad  <ryanhaddad@apple.com>
    215
  • trunk/Source/WebKit/NetworkProcess/NetworkSession.cpp

    r266268 r267540  
    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.