From bc897bad66170e7db845373695b0a09c554bbd4b Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 23 Feb 2021 16:44:00 -0800 Subject: [PATCH] [asan] Increase CHECK limit in __sanitizer_annotate_contiguous_container Asan allocator already support up to (1 << 40) bytes allocations. --- compiler-rt/lib/asan/asan_poisoning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/asan/asan_poisoning.cpp b/compiler-rt/lib/asan/asan_poisoning.cpp index 44f872e..fa149ec 100644 --- a/compiler-rt/lib/asan/asan_poisoning.cpp +++ b/compiler-rt/lib/asan/asan_poisoning.cpp @@ -364,7 +364,7 @@ void __sanitizer_annotate_contiguous_container(const void *beg_p, &stack); } CHECK_LE(end - beg, - FIRST_32_SECOND_64(1UL << 30, 1ULL << 34)); // Sanity check. + FIRST_32_SECOND_64(1UL << 30, 1ULL << 40)); // Sanity check. uptr a = RoundDownTo(Min(old_mid, new_mid), granularity); uptr c = RoundUpTo(Max(old_mid, new_mid), granularity); -- 2.7.4