Enable bounds sanitization in libaac.

Enables the UBSan bounds sanitizer in libaac. This adds bounds checks
around array accesses when the array size is known at compile time.

Bug: 117221610
Test: make -j
Test: Device boots.
Change-Id: Ib820c7ec6ef6bcbf98d8526ed213c90ab29169c2
This commit is contained in:
Ivan Lozano 2018-12-11 09:14:39 -08:00
parent 0695cff3dd
commit 26a9da724f
1 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,11 @@ cc_library_static {
"-Wno-implicit-fallthrough",
],
sanitize: {
misc_undefined:["unsigned-integer-overflow", "signed-integer-overflow"],
misc_undefined:[
"unsigned-integer-overflow",
"signed-integer-overflow",
"bounds",
],
cfi: true,
},
export_include_dirs: [