Merge UBSan vla-bounds-not-positive fix from upstream am: ff1aa200b8 am: 41fcfd8bf0 am: 75305ca9be

Original change: https://android-review.googlesource.com/c/platform/external/libchrome-gestures/+/2871708

Change-Id: I17359821d4a1c76bcc5cbac580d8167ff39dd2b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/AndroidTest.xml b/AndroidTest.xml
index 0e08e46..5233b0d 100644
--- a/AndroidTest.xml
+++ b/AndroidTest.xml
@@ -26,6 +26,13 @@
         <option name="push" value="libchrome-gestures_test->/data/local/tmp/libchrome-gestures_test" />
     </target_preparer>
 
+    <!--
+        Because we push the test binary into /data/local/tmp, SELinux prevents
+        it from being read to produce symbolized stack traces when crashes
+        occur, so disable SELinux for these tests.
+    -->
+    <target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer" />
+
     <test class="com.android.tradefed.testtype.GTest" >
         <option name="native-test-device-path" value="/data/local/tmp" />
         <option name="module-name" value="libchrome-gestures_test" />