mirror of https://github.com/mstorsjo/fdk-aac.git
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:
parent
0695cff3dd
commit
26a9da724f
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue