diff options
author | Cindy Zhou <zhouci@google.com> | 2020-12-04 09:02:36 -0800 |
---|---|---|
committer | Cindy Zhou <zhouci@google.com> | 2020-12-21 05:25:42 -0800 |
commit | 33385d02d2cfb1bf8396dd1228855c9eab5e01c7 (patch) | |
tree | e9e9d15fa0a802a5fbdbc3bd755f49cca160e942 /Android.bp | |
parent | e8c76646fe77e2efa7748bd4e9c88da7e770c222 (diff) | |
download | libxaac-33385d02d2cfb1bf8396dd1228855c9eab5e01c7.tar.gz |
Enable cfi for libxaac
Bug: 158010610
Bug: 173497308
Test: ran atest with DecoderConformanceTest, ImageReaderDecoderTest,
VideoDecoderPerfTest, VideoEncoderTest, avcdec, avcenc. Compare the
before and after enabling CFI results since there was a number of tests
that were initially failing.
Change-Id: I5f3990bf8542d7d7ab74cd2e031e8b2c5339c098
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 27 |
1 files changed, 19 insertions, 8 deletions
@@ -2,14 +2,14 @@ cc_library_static { name: "libxaacdec", vendor_available: true, - host_supported:true, + host_supported: true, cflags: [ - "-O3" + "-O3", ], export_include_dirs: [ "decoder", - "decoder/drc_src" + "decoder/drc_src", ], srcs: [ @@ -124,15 +124,26 @@ cc_library_static { "decoder/drc_src/impd_drc_static_payload.c", ], + target: { + android: { + sanitize: { + diag: { + cfi: true, + }, + }, + }, + }, + sanitize: { misc_undefined: [ "unsigned-integer-overflow", "signed-integer-overflow", "bounds", ], - // Enable CFI if this becomes a shared library. - // cfi: true, - blocklist: "libxaac_blocklist.txt", + cfi: true, + config: { + cfi_assembly_support: true, + }, }, arch: { @@ -213,9 +224,9 @@ cc_library_static { "decoder/armv7/ixheaacd_aac_ld_dec_rearrange.s", "decoder/armv7/ixheaacd_fft32x32_ld2_armv7.s", "decoder/armv7/ixheaacd_apply_scale_fac.s", - "decoder/armv7/ixheaacd_tns_ar_filter_fixed.s" + "decoder/armv7/ixheaacd_tns_ar_filter_fixed.s", ], - } + }, }, arm64: { |