From e16bdb1bd1efe1a6bbe3029e45b10bdd7df67bc0 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 13 Jul 2016 00:20:20 -0700 Subject: [PATCH] libutils: Limit integer sanitize to target only This matches what the Android.mk defined, and should temporarily fix builds that were broken with: system/core/libutils/Unicode.cpp:225:12: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long') Change-Id: I0363b42fc2d62dfd2d05649c9aa9ef0be573e20a --- libutils/Android.bp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libutils/Android.bp b/libutils/Android.bp index 3451bbddb..1038db4f9 100644 --- a/libutils/Android.bp +++ b/libutils/Android.bp @@ -66,6 +66,10 @@ cc_library { "libdl", "liblog", ], + + sanitize: { + misc_undefined: ["integer"], + }, }, host: { @@ -96,9 +100,6 @@ cc_library { }, clang: true, - sanitize: { - misc_undefined: ["integer"], - }, } // Include subdirectory makefiles