diff options
Diffstat (limited to 'libc/bionic/libc_init_common.cpp')
| -rw-r--r-- | libc/bionic/libc_init_common.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/bionic/libc_init_common.cpp b/libc/bionic/libc_init_common.cpp index f1350d5f9..01b6a42f0 100644 --- a/libc/bionic/libc_init_common.cpp +++ b/libc/bionic/libc_init_common.cpp @@ -86,11 +86,14 @@ static void arc4random_fork_handler() { } static void __libc_init_malloc_fill_contents() { +// TODO(b/158870657) make this unconditional when all devices support SCUDO. +#if defined(USE_SCUDO) #if defined(SCUDO_PATTERN_FILL_CONTENTS) scudo_malloc_set_pattern_fill_contents(1); #elif defined(SCUDO_ZERO_CONTENTS) scudo_malloc_set_zero_contents(1); #endif +#endif } __BIONIC_WEAK_FOR_NATIVE_BRIDGE |
