WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
299845
Regression(
300686@main
) Refcounting of ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest is incorrect
https://bugs.webkit.org/show_bug.cgi?id=299845
Summary
Regression(300686@main) Refcounting of ASAuthorizationSecurityKeyPublicKeyCre...
Chris Dumez
Reported
2025-09-29 19:33:36 PDT
In
300686@main
, I incorrectly assumed that the static analysis was wrong and that the `create` functions returning ASAuthorizationSecurityKeyPublicKeyCredentialAssertionRequest objects were returning a +1 refcount object which we needed to adopt. However, this framework is using ARC and those functions are in fact returning autoreleased objects. Our code was already wrong pre-
300686@main
as we were adopting those objects. However, we used to call leakRef() later on, which would avoid crashes. In
300686@main
, I had dropped the leakRef() calls as they seemed unnecessary. To address the issue, I stop calling `adoptNS()` and I drop the annotations I had adopted in the forward declaration header. The framework is not able to adopt those annotations as it would break other clients of these APIs.
Attachments
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2025-09-29 19:35:38 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/51541
EWS
Comment 2
2025-09-29 21:25:53 PDT
Committed
300731@main
(fc768e2e3c75): <
https://commits.webkit.org/300731@main
> Reviewed commits have been landed. Closing PR #51541 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2025-09-29 21:28:38 PDT
<
rdar://problem/161622647
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug