hal: Enable integer overflow sanitizer
Enable integer overflow sanitizer in audio HAL for kona.
Change-Id: I6aba4c636f2d467518281361259b1a7768ae34d7
diff --git a/voice_processing/Android.mk b/voice_processing/Android.mk
index 56a3abd..e448b6f 100644
--- a/voice_processing/Android.mk
+++ b/voice_processing/Android.mk
@@ -50,5 +50,8 @@
LOCAL_CFLAGS += -Wno-unused-function
LOCAL_CFLAGS += -Wno-unused-local-typedef
+ifneq ($(filter kona,$(TARGET_BOARD_PLATFORM)),)
+LOCAL_SANITIZE := integer_overflow
+endif
include $(BUILD_SHARED_LIBRARY)
endif