projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7895a8
)
[asan] fix a test following r209508
author
Kostya Serebryany
<kcc@google.com>
Fri, 23 May 2014 11:52:38 +0000
(11:52 +0000)
committer
Kostya Serebryany
<kcc@google.com>
Fri, 23 May 2014 11:52:38 +0000
(11:52 +0000)
llvm-svn: 209509
compiler-rt/lib/asan/tests/asan_oob_test.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/asan/tests/asan_oob_test.cc
b/compiler-rt/lib/asan/tests/asan_oob_test.cc
index
f8343f1
..
0c6bea2
100644
(file)
--- a/
compiler-rt/lib/asan/tests/asan_oob_test.cc
+++ b/
compiler-rt/lib/asan/tests/asan_oob_test.cc
@@
-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);