Repository navigation
Digital Credentials: Fix safer C++ checker warnings in DigitalCredentialsCoordinator.cpp - #56614
Conversation
|
EWS run on previous version of this PR (hash aaf4d1f) Details
|
There was a problem hiding this comment.
Pull request overview
This PR addresses safer C++ checker warnings by protecting against use-after-free scenarios in the DigitalCredentialsCoordinator. The changes ensure that lambda captures do not create dangling references when the coordinator is destroyed before callback execution.
Changes:
- Modified lambda capture to use WeakPtr instead of raw 'this' pointer
- Added null check for WeakPtr before accessing coordinator members
- Updated error codes to use AbortError for consistency
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
aaf4d1f to
c27e88d
Compare
|
EWS run on previous version of this PR (hash c27e88d) Details |
c27e88d to
201ed84
Compare
|
EWS run on previous version of this PR (hash 201ed84) Details
|
annevk
left a comment
There was a problem hiding this comment.
This looks good, but please make sure the Safer CPP bot runs to completion and you don't have to remove a file entry.
201ed84 to
57f350f
Compare
|
EWS run on current version of this PR (hash 57f350f) Details |
…ialsCoordinator.cpp rdar://168196068 https://bugs.webkit.org/show_bug.cgi?id=305536 Reviewed by Anne van Kesteren. Addressed safer C++ checker warnings in DigitalCredentialsCoordinator.cpp by ensuring that any lambda capturing 'this' or members of 'this' uses a WeakPtr to avoid dangling references if the coordinator is destroyed before the lambda is executed. * Source/WebKit/WebProcess/DigitalCredentials/DigitalCredentialsCoordinator.cpp: (WebKit::DigitalCredentialsCoordinator::showDigitalCredentialsPicker): Canonical link: https://commits.webkit.org/305634@main
57f350f to
7a3c33b
Compare
|
Committed 305634@main (7a3c33b): https://commits.webkit.org/305634@main Reviewed commits have been landed. Closing PR #56614 and removing active labels. |
🛠 ios-apple
7a3c33b
57f350f
🛠 win🧪 win-tests🧪 api-wpe