Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5ad00f6a781a8009e38aabc8ba9010380be21775
https://github.com/WebKit/WebKit/commit/5ad00f6a781a8009e38aabc8ba9010380be21775
Author: Ahmad Saleem <[email protected]>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M Source/WebCore/platform/network/cf/DNSResolveQueueCFNet.cpp
Log Message:
-----------
DNSResolveQueueCFNet::updateIsUsingProxy() dereferences null CFArray from
CFNetworkCopyProxiesForURL
https://bugs.webkit.org/show_bug.cgi?id=323982
rdar://187218191
Reviewed by Alex Christensen.
CFNetworkCopyProxiesForURL() can return null, but updateIsUsingProxy()
passed its result straight to CFArrayGetCount() without a null check,
which is undefined behavior.
Guard both the HTTP and HTTPS proxy arrays before counting them,
treating a null result as a proxy count of zero. When the count is
zero the subsequent CFArrayGetValueAtIndex() paths are already skipped,
so m_isUsingProxy correctly resolves to false.
* Source/WebCore/platform/network/cf/DNSResolveQueueCFNet.cpp:
(WebCore::DNSResolveQueueCFNet::updateIsUsingProxy):
Canonical link: https://commits.webkit.org/320964@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications