Fix hwasan build.
Test: hwasan builds properly. Change-Id: I3c911da08d1925b797423671e3beb72770a934b0
This commit is contained in:
parent
1462d267e2
commit
883144719a
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue