[webkit-changes] [WebKit/WebKit] a68ad5: Protect WebProcess::unblockServicesRequiredByAcces...
Brent Fulgham
noreply at github.com
Mon Jan 29 20:23:59 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a68ad5db5c8327163866f7f1ece33604d2ac5c7d
https://github.com/WebKit/WebKit/commit/a68ad5db5c8327163866f7f1ece33604d2ac5c7d
Author: Brent Fulgham <bfulgham at apple.com>
Date: 2024-01-29 (Mon, 29 Jan 2024)
Changed paths:
M Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
Log Message:
-----------
Protect WebProcess::unblockServicesRequiredByAccessibility from attempting to consume nullptr sandbox extensions
https://bugs.webkit.org/show_bug.cgi?id=268314
<rdar://121746329>
Reviewed by Per Arne Vollan.
The code in WebProcess::unblockServicesRequiredByAccessibility assumes that it
will always work with non-nullptr Sandbox Extensions. However, it's possible
for the SandboxExtension::create() method to return nullptr, so we should harden
this code to avoid crashing under such conditions.
* Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::unblockServicesRequiredByAccessibility):
Canonical link: https://commits.webkit.org/273719@main
More information about the webkit-changes
mailing list