aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorCindy Zhou <zhouci@google.com>2020-12-02 12:54:30 -0800
committerCindy Zhou <zhouci@google.com>2020-12-21 05:13:58 -0800
commit379fb7b4462e8510d3c88d4c9175b4bc46b0690b (patch)
tree4a78298416e258d52205d84c23ecb9e0e0c27f9f /Android.bp
parente979e4f69a45519b574186b56c883f5f1a413ba8 (diff)
downloadlibhevc-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.bp33
1 files changed, 29 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp
index c60d9e1..cc07f1e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",
},