Sanitize address for libinput tests
We can't enable hwasan for libinput, or for host.
On host, enable the regular address sanitizer.
Bug: 271455682
Test: presubmit
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:895ad6e36626b8bdf609eadc36d6ff49f1b38517)
Merged-In: I9e6938fdc3b834ab19642947ceb65f36356a6ca5
Change-Id: I9e6938fdc3b834ab19642947ceb65f36356a6ca5
diff --git a/libs/input/tests/Android.bp b/libs/input/tests/Android.bp
index 42bdf57..6aae25d 100644
--- a/libs/input/tests/Android.bp
+++ b/libs/input/tests/Android.bp
@@ -44,12 +44,20 @@
"-Wno-unused-parameter",
],
sanitize: {
+ hwaddress: true,
undefined: true,
all_undefined: true,
diag: {
undefined: true,
},
},
+ target: {
+ host: {
+ sanitize: {
+ address: true,
+ },
+ },
+ },
shared_libs: [
"libbase",
"libbinder",