Chromium Code Reviews
DescriptionFix MenuController Heap-use-after-free
MenuController applies a ref to ViewsDelegate, in order to prevent Chrome from
shutting down while a menu is open. This ref is released as the menu is closing.
However it is possible for the release of the ref to lead to Chrome shutting
down immediately. During this MenuController is deleted. However it was possible
that MenuController would access the heap as the stack collapsed.
This change updates the menu closing process to detect the deletion and to
shutdown cleanly.
TEST=MenuControllerTest.DestroyedDuringViewsRelease
BUG=681462
Review-Url: https://codereview.chromium.org/2636293002
Cr-Commit-Position: refs/heads/master@{#444203}
Committed: https://chromium.googlesource.com/chromium/src/+/faaee985121bc612a5a79b03215a490f7f65d0eb
Patch Set 1 #
Total comments: 2
Patch Set 2 : Typo in comments #
Messages
Total messages: 11 (5 generated)
|
||||||||||||||||||||||||||||