[PATCH] D27061: [asan] Avoid duplicate and redundant poisoning checks in __sanitizer_contiguous_container_find_bad_address

Ivan Baravy via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 01:57:16 PST 2016


i.baravy updated the summary for this revision.
i.baravy updated this revision to Diff 79196.
i.baravy marked an inline comment as done.
i.baravy added a comment.

Revert merging cycles.


Repository:
  rL LLVM

https://reviews.llvm.org/D27061

Files:
  lib/asan/asan_poisoning.cc


Index: lib/asan/asan_poisoning.cc
===================================================================
--- lib/asan/asan_poisoning.cc
+++ lib/asan/asan_poisoning.cc
@@ -412,7 +412,7 @@
   // ending with end.
   uptr kMaxRangeToCheck = 32;
   uptr r1_beg = beg;
-  uptr r1_end = Min(end + kMaxRangeToCheck, mid);
+  uptr r1_end = Min(beg + kMaxRangeToCheck, mid);
   uptr r2_beg = Max(beg, mid - kMaxRangeToCheck);
   uptr r2_end = Min(end, mid + kMaxRangeToCheck);
   uptr r3_beg = Max(end - kMaxRangeToCheck, mid);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27061.79196.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161124/94eaf88b/attachment.bin>


More information about the llvm-commits mailing list