summaryrefslogtreecommitdiff
path: root/libs/gui/WindowInfosUpdate.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-04-21 11:30:20 -0700
committer Siarhei Vishniakou <svv@google.com> 2023-04-27 16:58:35 +0000
commit6773db6d38ee0965d68c4d08d33e998b56f93fc0 (patch)
tree4e599fcbc30c1d4560ba88521dd233502fb7b105 /libs/gui/WindowInfosUpdate.cpp
parent8aedbf30dd4123c3050a040ce1c1b6e9d07b96ec (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 Merged-In: I8c92e47133e0eea55186be049434bdfd5c0348ff Change-Id: I8c92e47133e0eea55186be049434bdfd5c0348ff
Diffstat (limited to 'libs/gui/WindowInfosUpdate.cpp')
0 files changed, 0 insertions, 0 deletions