diff options
| author | 2023-10-19 18:58:07 -0700 | |
|---|---|---|
| committer | 2023-10-29 13:43:02 -0700 | |
| commit | ae08b5e5f48fa9711a32ae0cb71d53505fe911f2 (patch) | |
| tree | a6c87456ea4840205c740745a335a6799bed560a /libs/gui/DisplayEventReceiver.cpp | |
| parent | 574cfcf497cd70675d1106cd522ce07bf282b141 (diff) | |
input_verifier: Ensure bad event does not change verifier state
Before this CL, the verifier combined a check and a storage operation
into a single action. After the check, a bad event would cause the
verifier to return, but the state would have already be altered.
In this CL, we ensure that the check happens first, so that a bad event
does not modify the verifier state.
Bug: 287342122
Test: atest inputflinger_tests
Change-Id: Ib981231046faa062717a9d00856bf9551e510a33
Diffstat (limited to 'libs/gui/DisplayEventReceiver.cpp')
0 files changed, 0 insertions, 0 deletions