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
diff --git a/Android.bp b/Android.bp
index b322d07..73957f6 100644
--- a/Android.bp
+++ b/Android.bp
@@ -25,7 +25,11 @@
"-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: [