aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCindy Zhou <zhouci@google.com>2020-12-03 13:29:33 -0800
committerCindy Zhou <zhouci@google.com>2021-01-14 15:02:01 -0800
commitc38dfc2a0abadbf4946d590fb49e299a2e3737d1 (patch)
treeee90ef1acf0005ca22b6ccf59688ef1e62f862d1
parent0f3b265754d582c07578aad3771cf2a6cd15f696 (diff)
downloadlibvpx-c38dfc2a0abadbf4946d590fb49e299a2e3737d1.tar.gz
Enable cfi for libvpx
Only enabling CFI for android for libvpx. Bug: 158010610 Bug: 173497308 Test: ran atest 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: Ia4aa61c62ff55ced44fa58709fddd01b99c2b304
-rw-r--r--Android.bp10
-rw-r--r--libvpx_blocklist.txt3
2 files changed, 8 insertions, 5 deletions
diff --git a/Android.bp b/Android.bp
index 1f7333b59..6e84e3c5c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1098,6 +1098,14 @@ cc_library {
darwin: {
enabled: false,
},
+ android: {
+ sanitize: {
+ cfi: true,
+ config: {
+ cfi_assembly_support: true,
+ },
+ },
+ },
},
arch: {
@@ -1144,8 +1152,6 @@ cc_library {
sanitize: {
integer_overflow: true,
misc_undefined: ["bounds"],
- // Enable CFI if this becomes a shared library.
- // cfi: true,
blocklist: "libvpx_blocklist.txt",
},
min_sdk_version: "29",
diff --git a/libvpx_blocklist.txt b/libvpx_blocklist.txt
index df3e36c1d..c9ea142e3 100644
--- a/libvpx_blocklist.txt
+++ b/libvpx_blocklist.txt
@@ -1,6 +1,3 @@
-[cfi]
-src:*external/libvpx/*
-
[integer]
# Performance related
fun:read_bool