commit | ae08b5e5f48fa9711a32ae0cb71d53505fe911f2 | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Thu Oct 19 18:58:07 2023 -0700 |
committer | Siarhei Vishniakou <svv@google.com> | Sun Oct 29 13:43:02 2023 -0700 |
tree | a6c87456ea4840205c740745a335a6799bed560a | |
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