Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge to M119] Make URLSearchParams persistent to avoid UaF
The URLSearchParams::Create() function returns an on-heap object, but it can be garbage collected, so making it a persistent variable in DidFetchDataLoadedString() mitigates the issue. (cherry picked from commit 8b1bd77) Bug: 1497997 Change-Id: I3c27ba18b9c46d22d841e06f4a91bcc360aad287 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4996929 Reviewed-by: Adam Rice <ricea@chromium.org> Commit-Queue: Nidhi Jaju <nidhijaju@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1218682} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5009227 Commit-Queue: Adam Rice <ricea@chromium.org> Auto-Submit: Nidhi Jaju <nidhijaju@chromium.org> Cr-Commit-Position: refs/branch-heads/6045@{#1260} Cr-Branched-From: 905e8bd-refs/heads/main@{#1204232}
- Loading branch information