Merge "Fix hwasan build."

This commit is contained in:
Treehugger Robot 2019-02-14 08:04:46 +00:00 committed by Gerrit Code Review
commit 1b82812635
1 changed files with 12 additions and 0 deletions

View File

@ -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)