Title: [267540] trunk/Source/WebKit
- Revision
- 267540
- Author
- [email protected]
- Date
- 2020-09-24 11:29:21 -0700 (Thu, 24 Sep 2020)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (267539 => 267540)
--- trunk/Source/WebKit/ChangeLog 2020-09-24 18:28:36 UTC (rev 267539)
+++ trunk/Source/WebKit/ChangeLog 2020-09-24 18:29:21 UTC (rev 267540)
@@ -1,3 +1,16 @@
+2020-09-24 Kate Cheney <[email protected]>
+
+ 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):
+
2020-09-24 Ryan Haddad <[email protected]>
Unreviewed, fix the build for recent SDKs.
Modified: trunk/Source/WebKit/NetworkProcess/NetworkSession.cpp (267539 => 267540)
--- trunk/Source/WebKit/NetworkProcess/NetworkSession.cpp 2020-09-24 18:28:36 UTC (rev 267539)
+++ trunk/Source/WebKit/NetworkProcess/NetworkSession.cpp 2020-09-24 18:29:21 UTC (rev 267540)
@@ -297,6 +297,9 @@
Optional<WebCore::RegistrableDomain> NetworkSession::firstPartyHostCNAMEDomain(const String& firstPartyHost)
{
#if HAVE(CFNETWORK_CNAME_AND_COOKIE_TRANSFORM_SPI)
+ if (!decltype(m_firstPartyHostCNAMEDomains)::isValidKey(firstPartyHost))
+ return WTF::nullopt;
+
auto iterator = m_firstPartyHostCNAMEDomains.find(firstPartyHost);
if (iterator == m_firstPartyHostCNAMEDomains.end())
return WTF::nullopt;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes