diff options
author | Leon Scroggins III <scroggo@google.com> | 2021-01-11 11:35:10 -0500 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2021-01-14 12:26:51 -0500 |
commit | ba9a690d26e258b8c00f71b6ffc6e371aa155a7f (patch) | |
tree | 8b4d3066ea94a59c6e054a6309d4334cd18c6c52 /native | |
parent | c72d0fb15d3d663531483cd0bc33c3e268e00a58 (diff) |
fuzz_imagedecoder: ignore allocation failures
Bug: 142252770
Bug: 169137236
Bug: 169139756
Test: this
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.
Change-Id: Ib750a142e28d01144036409786e631dfb783283f
Diffstat (limited to 'native')
-rw-r--r-- | native/graphics/jni/Android.bp | 7 |
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, |