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 + +__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)