From a71bc05c2c63e47aa8f1edf61d8d2e90115c8c26 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 7 May 2025 11:10:52 +0800 Subject: [PATCH] fix sanitizer allocator. Signed-off-by: Eric --- compiler-rt/lib/hwasan/hwasan_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/hwasan/hwasan_allocator.h b/compiler-rt/lib/hwasan/hwasan_allocator.h index 2ada2a0b1851..31ba67c7fc73 100644 --- a/compiler-rt/lib/hwasan/hwasan_allocator.h +++ b/compiler-rt/lib/hwasan/hwasan_allocator.h @@ -74,7 +74,7 @@ struct AP64 { #if defined(HWASAN_ALIASING_MODE) static const uptr kSpaceSize = 1ULL << kAddressTagShift; typedef __sanitizer::DefaultSizeClassMap SizeClassMap; -#elif SANITIZER_LINUX && !SANITIZER_ANDROID +#elif SANITIZER_LINUX && !SANITIZER_ANDROID && !SANITIZER_OHOS static const uptr kSpaceSize = 0x40000000000ULL; // 4T. typedef __sanitizer::DefaultSizeClassMap SizeClassMap; #else -- Gitee