commit | 23740b95e8589f57aba82f61ef875013d8b92c6f | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Fri Apr 21 11:30:20 2023 -0700 |
committer | Siarhei Vishniakou <svv@google.com> | Thu Apr 27 16:55:28 2023 +0000 |
tree | ec9c0ae1ea47c84523a5f88784976a34fae0a1ed | |
parent | e32524b9844f24a7b821d6a833992bb5fd6dd989 [diff] |
Validate events before printing them Before this patch, enabling the injection logs would cause a crash when running inputflinger_tests. This happened because the events were getting printed prior to getting checked for validity. To fix this, move the check to the beginning of the function. Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests Bug: 274073185 Change-Id: I8c92e47133e0eea55186be049434bdfd5c0348ff