diff options
author | 2021-02-04 16:18:17 -0800 | |
---|---|---|
committer | 2021-02-05 19:00:50 +0000 | |
commit | 167e6d9eadcb057125e2b0828edbebe521b88a17 (patch) | |
tree | 8dfe3a7d54d56530b14da38e5c82027896eef1c7 /services/surfaceflinger/ClientCache.cpp | |
parent | cf1509d02044f11420eee050d9f83e3f056397e5 (diff) |
InputDispatcher: Fix crash with out-of-order pointer capture requests
One of the conditions being tested in a LOG_ALWAYS_FATAL call was
incorrect, causing a crash when Pointer Capture requests happened in a
certain order.
This CL adds a test that exposes the sequence of events that caused the
crash, and changes the condition in the LOG_ALWAYS_FATAL check to the
correct condition, thereby fixing the crash.
Bug: 179303721
Test: atest inputflinger_tests
Change-Id: I145c71609572b6c6714b8932889cd48523c91511
Diffstat (limited to 'services/surfaceflinger/ClientCache.cpp')
0 files changed, 0 insertions, 0 deletions