[PATCH] D27061: [asan] Avoid redundant poisoning checks in __sanitizer_contiguous_container_find_bad_address
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 01:21:50 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL288234: [asan] Avoid redundant poisoning checks in… (authored by chefmax).
Changed prior to commit:
https://reviews.llvm.org/D27061?vs=79196&id=79709#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27061
Files:
compiler-rt/trunk/lib/asan/asan_poisoning.cc
Index: compiler-rt/trunk/lib/asan/asan_poisoning.cc
===================================================================
--- compiler-rt/trunk/lib/asan/asan_poisoning.cc
+++ compiler-rt/trunk/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.79709.patch
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161130/40feb299/attachment.bin>
More information about the llvm-commits
mailing list