From f54ab06b547439bcd03c58fd5d3f52a42f84c3d4 Mon Sep 17 00:00:00 2001 From: Akhilesh Sanikop Date: Tue, 4 Feb 2025 09:43:26 +0000 Subject: inputflinger: Restricted invalid MotionEvent button enum values Fixes an issue by passing valid MotionEvent buttons through NotifyMotionArgs() in FuzzedInputStream.h. Added IfThisThenThat Lint to remind the actionButton to sync Test: m frameworks/native/services/inputflinger/tests/fuzzers Bug: 392345690 Flag: EXEMPT bugfix in fuzzer Change-Id: I7c2108a255114b24e6544aa930696079e4f06b77 --- include/android/input.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/android/input.h b/include/android/input.h index 5f445509fa..2f6c5b57ff 100644 --- a/include/android/input.h +++ b/include/android/input.h @@ -862,7 +862,7 @@ enum { AMOTION_EVENT_BUTTON_FORWARD = 1 << 4, AMOTION_EVENT_BUTTON_STYLUS_PRIMARY = 1 << 5, AMOTION_EVENT_BUTTON_STYLUS_SECONDARY = 1 << 6, - // LINT.ThenChange(/frameworks/native/libs/input/rust/input.rs) + // LINT.ThenChange(/frameworks/native/libs/input/rust/input.rs,/frameworks/native/services/inputflinger/tests/fuzzers/FuzzedInputStream.h) }; /** -- cgit v1.2.3-59-g8ed1b