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
This commit is contained in:
Dan Willemsen 2016-07-13 00:20:20 -07:00
parent 41e82a3ca5
commit e16bdb1bd1

View file

@ -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