[webkit-changes] [WebKit/WebKit] 4b9389: Don't dereference null when DNSServiceGetAddrInfo ...
Alex Christensen
noreply at github.com
Mon Jun 12 13:44:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b93898a545affdf81989b1df86324c6aff889ac
https://github.com/WebKit/WebKit/commit/4b93898a545affdf81989b1df86324c6aff889ac
Author: Alex Christensen <achristensen at apple.com>
Date: 2023-06-12 (Mon, 12 Jun 2023)
Changed paths:
M Source/WebCore/platform/network/cf/DNSResolveQueueCFNet.cpp
Log Message:
-----------
Don't dereference null when DNSServiceGetAddrInfo fails immediately
https://bugs.webkit.org/show_bug.cgi?id=257977
rdar://110383873
Reviewed by David Kilzer.
Ref::leakRef sets the pointer to null, then we were using that value.
With some code modification I verified that this is what was happening in the crash reports.
* Source/WebCore/platform/network/cf/DNSResolveQueueCFNet.cpp:
(WebCore::DNSResolveQueueCFNet::performDNSLookup):
Canonical link: https://commits.webkit.org/265086@main
More information about the webkit-changes
mailing list