From 9c832028c1c52b06b395fbe9916574bfc01c8db6 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Tue, 7 Jul 2020 22:37:07 +0000 Subject: [PATCH] libutils: integer sanitization For sanity. Fixes: 160342252 Test: manually introduce overflow for "ubsan: mul-overflow" Change-Id: I292039eaef24582f05dd9f0fef011f0ece8364ed --- libutils/Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libutils/Android.bp b/libutils/Android.bp index 739280607..9bd15c68e 100644 --- a/libutils/Android.bp +++ b/libutils/Android.bp @@ -78,6 +78,9 @@ cc_defaults { "libcutils", "liblog", ], + sanitize: { + misc_undefined: ["integer"], + }, target: { android: {