Bug 250080

Summary: _WKAuthenticatorAttestationResponse and _WKAuthenticatorResponse should retain/copy their instance variables
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: WebKit2Assignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: kkinnunen, pascoe, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

David Kilzer (:ddkilzer)
Reported 2023-01-04 09:27:10 PST
_WKAuthenticatorAttestationResponse and _WKAuthenticatorResponse should retain their instance variables. Currently they are storing NSObject types as the equivalent of __unsafe_unretained, and not copying @property objects with the `copy` attribute. Found by clang static analyzer (as leaks, but only when using getter/setter methods, not via direct assignment).
Attachments
Radar WebKit Bug Importer
Comment 1 2023-01-04 09:27:38 PST
David Kilzer (:ddkilzer)
Comment 2 2023-01-04 10:39:06 PST
EWS
Comment 3 2023-01-04 20:30:53 PST
Committed 258471@main (fe1655421cc5): <https://commits.webkit.org/258471@main> Reviewed commits have been landed. Closing PR #8198 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.