aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2018-12-11 09:14:39 -0800
committerIvan Lozano <ivanlozano@google.com>2018-12-11 09:18:14 -0800
commit26a9da724f4f6f14f3a863a56434b9e6ac360afa (patch)
treefd9339eb1f86ef5d2eac817b7ce7503a158af3c3 /Android.bp
parent0695cff3ddcccae44d347a3ed25ef52f86b884a0 (diff)
downloadfdk-aac-26a9da724f4f6f14f3a863a56434b9e6ac360afa.tar.gz
fdk-aac-26a9da724f4f6f14f3a863a56434b9e6ac360afa.tar.bz2
fdk-aac-26a9da724f4f6f14f3a863a56434b9e6ac360afa.zip
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
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index b322d07..73957f6 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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: [