[lsan] Relax check for allocator_end in ProcessGlobalRegionsCallback.
authorMaxim Ostapenko <m.ostapenko@partner.samsung.com>
Wed, 26 Oct 2016 06:56:51 +0000 (06:56 +0000)
committerMaxim Ostapenko <m.ostapenko@partner.samsung.com>
Wed, 26 Oct 2016 06:56:51 +0000 (06:56 +0000)
Differential Revision: https://reviews.llvm.org/D25945

llvm-svn: 285177

compiler-rt/lib/lsan/lsan_common_linux.cc

index 1f54303..f6154d8 100644 (file)
@@ -71,7 +71,7 @@ static int ProcessGlobalRegionsCallback(struct dl_phdr_info *info, size_t size,
     GetAllocatorGlobalRange(&allocator_begin, &allocator_end);
     if (begin <= allocator_begin && allocator_begin < end) {
       CHECK_LE(allocator_begin, allocator_end);
-      CHECK_LT(allocator_end, end);
+      CHECK_LE(allocator_end, end);
       if (begin < allocator_begin)
         ScanRangeForPointers(begin, allocator_begin, frontier, "GLOBAL",
                              kReachable);