Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2a24a9aa7c6be5d2d4a4058691c4a03b3701f6b3
https://github.com/WebKit/WebKit/commit/2a24a9aa7c6be5d2d4a4058691c4a03b3701f6b3
Author: Keith Miller <[email protected]>
Date: 2026-09-18 (Fri, 18 Sep 2026)
Changed paths:
M Source/JavaScriptCore/API/JSClassRef.cpp
M Source/JavaScriptCore/API/tests/testapi.cpp
Log Message:
-----------
OpaqueJSClass should retain/release the parent JSClassRef when provided
https://bugs.webkit.org/show_bug.cgi?id=319684
rdar://182366602
Reviewed by Mark Lam.
We are retain/release-ing the prototype's JSClassRef but not the parent's
class. We should do so otherwise we could UAF the parent class for some
API users.
Test: Source/JavaScriptCore/API/tests/testapi.cpp
Originally-landed-as: 316606.72@safari-7625-branch (246fe5217811).
rdar://187506997
Canonical link: https://commits.webkit.org/321425@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications