-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't access
this
in BrandcodeConfigFetcher after running the callback
The callback in BrandcodeConfigFetcher::OnSimpleLoaderComplete can be run synchronously, which may delete `this`. Avoid accessing member variables after running the callback to avoid a use-after-free. (cherry picked from commit 6f476b9) Fixed: 1491296 Change-Id: Id8ce7ce5cde13a81f213f6c54d62de62b566e993 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4931200 Commit-Queue: Robert Sesek <rsesek@chromium.org> Reviewed-by: Vasilii Sukhanov <vasilii@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1208889} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4949910 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5993@{#1338} Cr-Branched-From: 5113507-refs/heads/main@{#1192594}
- Loading branch information
Showing
2 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters