Descriptioncc: Fix use-after-free in test.
The following sequence of events causes a crash in this test:
1. LayerTreeTest::RealEndTest is called when the test ends.
2. LayerTreeTest::layer_tree_host_ is set to nullptr.
3. A task posted by the FakeExternalBeginFrameSource runs before
ThreadProxy::LayerTreeHostClosedOnImplThread is called.
4. We try to dereference LayerTreeTest::layer_tree_host_ by calling
LayerTreeTest::ImplThreadTaskRunner.
The fix is to simply not use LayerTreeTest::ImplThreadTaskRunner after
the test has ended.
BUG=476094
R=danakj
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/5f4f6a4984527f5fca0be5972e7f884180c770d9
Cr-Commit-Position: refs/heads/master@{#346297}
Patch Set 1 #
Total comments: 2
Patch Set 2 : danakj's review #
Total comments: 2
Patch Set 3 : comment #
Messages
Total messages: 11 (2 generated)
|