Skip to content

Commit 912506b

Browse files
committed
[test][hwasan] Add __hwasan_enable_allocator_tagging
It's required for hwasan `aliasing` mode.
1 parent 6095e21 commit 912506b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/test/sanitizer_common/TestCases/Posix/fork_threaded.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ NOSAN static void *inchild(void *arg) {
5858
}
5959

6060
int main(void) {
61+
#if __has_feature(hwaddress_sanitizer)
62+
__hwasan_enable_allocator_tagging();
63+
#endif
64+
6165
pid_t pid;
6266

6367
pthread_barrier_init(&bar, NULL, 2);

0 commit comments

Comments
 (0)