diff options
| -rw-r--r-- | compiler-rt/test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc | 3 | ||||
| -rw-r--r-- | compiler-rt/test/asan/TestCases/dlclose-test.cc | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc b/compiler-rt/test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc index e467f76bd40..ff45caa0aa5 100644 --- a/compiler-rt/test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc +++ b/compiler-rt/test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc @@ -27,7 +27,8 @@ int main() { void *p = my_memalign(kPageSize, 1024 * 1024); free(p); - char *q = (char *)mmap(p, kPageSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, 0, 0); + char *q = (char *)mmap(p, kPageSize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); assert(q == p); memset(q, 42, kPageSize); diff --git a/compiler-rt/test/asan/TestCases/dlclose-test.cc b/compiler-rt/test/asan/TestCases/dlclose-test.cc index 2c5e4497b69..094453f3de2 100644 --- a/compiler-rt/test/asan/TestCases/dlclose-test.cc +++ b/compiler-rt/test/asan/TestCases/dlclose-test.cc @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) { size_t page_beg = ((size_t)addr) & ~(PageSize - 1); void *res = mmap((void*)(page_beg), PageSize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_ANON | MAP_FIXED | MAP_NORESERVE, 0, 0); + MAP_PRIVATE | MAP_ANON | MAP_FIXED | MAP_NORESERVE, -1, 0); if (res == (char*)-1L) { printf("failed to mmap\n"); return 1; |

