[asan] Increase CHECK limit in __sanitizer_annotate_contiguous_container
authorVitaly Buka <vitalybuka@google.com>
Wed, 24 Feb 2021 00:44:00 +0000 (16:44 -0800)
committerVitaly Buka <vitalybuka@google.com>
Wed, 24 Feb 2021 06:14:42 +0000 (22:14 -0800)
Asan allocator already support up to (1 << 40) bytes allocations.

compiler-rt/lib/asan/asan_poisoning.cpp

index 44f872e..fa149ec 100644 (file)
@@ -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);