summaryrefslogtreecommitdiff
path: root/native
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-01-15 18:35:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-01-15 18:35:23 +0000
commit33dcfd49bf0491b88af993bf49239ac392bb45a4 (patch)
treebc59a65f7b2676d58095af38ab22cfbdab95d5a8 /native
parent0783c03683efab0eb53afd07e5b3bf4b089f6e33 (diff)
parentba9a690d26e258b8c00f71b6ffc6e371aa155a7f (diff)
Merge "fuzz_imagedecoder: ignore allocation failures"
Diffstat (limited to 'native')
-rw-r--r--native/graphics/jni/Android.bp7
1 files changed, 7 insertions, 0 deletions
diff --git a/native/graphics/jni/Android.bp b/native/graphics/jni/Android.bp
index b9aefdd18191..3751564ca465 100644
--- a/native/graphics/jni/Android.bp
+++ b/native/graphics/jni/Android.bp
@@ -89,6 +89,13 @@ cc_fuzz {
asan_options: [
"detect_odr_violation=1",
],
+ hwasan_options: [
+ // Image decoders may attempt to allocate a large amount of memory
+ // (especially if the encoded image is large). This doesn't
+ // necessarily mean there is a bug. Set allocator_may_return_null=1
+ // for hwasan so the fuzzer can continue running.
+ "allocator_may_return_null = 1",
+ ],
},
corpus: ["corpus/*"],
host_supported: true,