diff options
author | Cindy Zhou <zhouci@google.com> | 2020-12-02 12:54:30 -0800 |
---|---|---|
committer | Cindy Zhou <zhouci@google.com> | 2020-12-21 05:13:58 -0800 |
commit | 379fb7b4462e8510d3c88d4c9175b4bc46b0690b (patch) | |
tree | 4a78298416e258d52205d84c23ecb9e0e0c27f9f /Android.bp | |
parent | e979e4f69a45519b574186b56c883f5f1a413ba8 (diff) | |
download | libhevc-379fb7b4462e8510d3c88d4c9175b4bc46b0690b.tar.gz |
Enable cfi for libhevc
Bug: 158010610
Bug: 173497308
Test: Ran atest with DecoderConformanceTest, ImageReaderDecoderTest,
VideoDecoderPerfTest, VideoEncoderTest. Compare the
before and after enabling CFI results since there was a number of tests
that were initially failing.
Change-Id: I4d5ff6818b50755b233b0e3530f46b3680da9bb7
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 33 |
1 files changed, 29 insertions, 4 deletions
@@ -368,11 +368,23 @@ cc_library_static { }, }, + target: { + android: { + sanitize: { + diag: { + cfi: true, + }, + }, + }, + }, + sanitize: { integer_overflow: true, misc_undefined: ["bounds"], - // Enable CFI if this becomes a shared library. - // cfi: true, + cfi: true, + config: { + cfi_assembly_support: true, + }, blocklist: "libhevc_blocklist.txt", }, @@ -749,11 +761,24 @@ cc_library_static { }, }, + + target: { + android: { + sanitize: { + diag: { + cfi: true, + }, + }, + }, + }, + sanitize: { integer_overflow: true, misc_undefined: ["bounds"], - // Enable CFI if this becomes a shared library. - // cfi: true, + cfi: true, + config: { + cfi_assembly_support: true, + }, blocklist: "libhevc_blocklist.txt", }, |