[compiler-rt] r209509 - [asan] fix a test following r209508
Kostya Serebryany
kcc at google.com
Fri May 23 04:52:38 PDT 2014
Author: kcc
Date: Fri May 23 06:52:38 2014
New Revision: 209509
URL: http://llvm.org/viewvc/llvm-project?rev=209509&view=rev
Log:
[asan] fix a test following r209508
Modified:
compiler-rt/trunk/lib/asan/tests/asan_oob_test.cc
Modified: compiler-rt/trunk/lib/asan/tests/asan_oob_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_oob_test.cc?rev=209509&r1=209508&r2=209509&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_oob_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_oob_test.cc Fri May 23 06:52:38 2014
@@ -75,7 +75,9 @@ TEST(AddressSanitizer, OOB_int) {
}
TEST(AddressSanitizer, OOBRightTest) {
- for (size_t access_size = 1; access_size <= 8; access_size *= 2) {
+ size_t max_access_size = SANITIZER_WORDSIZE == 64 ? 8 : 4;
+ for (size_t access_size = 1; access_size <= max_access_size;
+ access_size *= 2) {
for (size_t alloc_size = 1; alloc_size <= 8; alloc_size++) {
for (size_t offset = 0; offset <= 8; offset += access_size) {
void *p = malloc(alloc_size);
More information about the llvm-commits
mailing list