summaryrefslogtreecommitdiff
path: root/rootdir/asan.options
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2015-08-07 17:04:37 -0700
committerEvgenii Stepanov <eugenis@google.com>2015-08-10 11:30:54 -0700
commit0d2dde57fef4db0d0e51369a1d9d9cfa5deb7235 (patch)
tree56beece456ff0359a53e790193d2ee684a7a298c /rootdir/asan.options
parent4bf3dc9345dcbadd79d26406c0c33e0c4a16ce29 (diff)
Read global ASAN_OPTIONS from a file.
Instead of setting global ASAN_OPTIONS in immutable init.environ.rc, load them from a file that can be changed later. The file has to be on the /system partition to both be editable and available at the early stages of boot. Also add allocator_may_return_null=1 as that is closer to the non-ASan allocator behavior. Bug: 22846541 Change-Id: Ib0f41393c528f2e7cb398470e41f50abf5f4f455
Diffstat (limited to 'rootdir/asan.options')
-rw-r--r--rootdir/asan.options1
1 files changed, 1 insertions, 0 deletions
diff --git a/rootdir/asan.options b/rootdir/asan.options
new file mode 100644
index 000000000..2f1234127
--- /dev/null
+++ b/rootdir/asan.options
@@ -0,0 +1 @@
+allow_user_segv_handler=1:detect_odr_violation=0:alloc_dealloc_mismatch=0:allocator_may_return_null=1