Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[asan] Properly clean up state in aura::Window::CleanupGestureState.
A guard was added in commit 5a2a306 that exited from CleanupGestureState when the window was destroyed from the gesture cancellation. However it exited too early, before the consumer state was cleaned up. This causes later drag and drop gestures to trigger use-after-free errors. This change moves the exit condition until after all related states in the gesture recognizer is cleaned up. #asan #uaf Bug: 1297643 Change-Id: I31c82ab3723c379515579cc32d8bed2ec93ec955 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3514815 Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Addison Luh <aluh@chromium.org> Auto-Submit: Addison Luh <aluh@chromium.org> Cr-Commit-Position: refs/heads/main@{#982965}
- Loading branch information
Addison Luh
authored and
Chromium LUCI CQ
committed
Mar 18, 2022
1 parent
e730e1e
commit 9cab337
Showing
2 changed files
with
67 additions
and
1 deletion.
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