diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-02-14 08:04:46 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-02-14 08:04:46 +0000 |
commit | 1b82812635e35667df9d28e7416d4b02c2083dfe (patch) | |
tree | 81db2d69e852193862c0a1cdbfe9cbc43b7809a5 /libc | |
parent | 1462d267e25e9a52cfc58bd735890f7b79d2e5cc (diff) | |
parent | 883144719a174c9770e25aa988a5f45f670e7bc3 (diff) |
Merge "Fix hwasan build."
Diffstat (limited to 'libc')
-rw-r--r-- | libc/bionic/malloc_common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/bionic/malloc_common.h b/libc/bionic/malloc_common.h index 94a6df4bf..a2f338afc 100644 --- a/libc/bionic/malloc_common.h +++ b/libc/bionic/malloc_common.h @@ -37,6 +37,18 @@ #if __has_feature(hwaddress_sanitizer) #include <sanitizer/hwasan_interface.h> + +__BEGIN_DECLS + +// FIXME: implement these in HWASan allocator. +int __sanitizer_iterate(uintptr_t base, size_t size, + void (*callback)(uintptr_t base, size_t size, void* arg), + void* arg); +void __sanitizer_malloc_disable(); +void __sanitizer_malloc_enable(); + +__END_DECLS + #define Malloc(function) __sanitizer_ ## function #else // __has_feature(hwaddress_sanitizer) |