aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCindy Zhou <zhouci@google.com>2021-01-20 00:59:11 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-01-20 00:59:11 +0000
commit9c8333802e3ba841f5a02723b540c4531f0dab91 (patch)
treeee90ef1acf0005ca22b6ccf59688ef1e62f862d1
parent0f3b265754d582c07578aad3771cf2a6cd15f696 (diff)
parentc38dfc2a0abadbf4946d590fb49e299a2e3737d1 (diff)
downloadlibvpx-9c8333802e3ba841f5a02723b540c4531f0dab91.tar.gz
Merge "Enable cfi for libvpx"
-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