libutils: integer sanitization

For sanity.

Fixes: 160342252
Test: manually introduce overflow for "ubsan: mul-overflow"
Change-Id: I292039eaef24582f05dd9f0fef011f0ece8364ed
This commit is contained in:
Steven Moreland 2020-07-07 22:37:07 +00:00
parent c3f17840ae
commit 9c832028c1
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ cc_defaults {
"libcutils",
"liblog",
],
sanitize: {
misc_undefined: ["integer"],
},
target: {
android: {