diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-10-09 22:52:13 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-10-09 22:52:13 +0000 |
commit | e21fc332775e7288a719d8b8ddb18772002d0c62 (patch) | |
tree | 97010027f8e315ac0d0f444c77f6b9bd42c716ad /test/ubsan | |
parent | 1da2a1c414e6da10d5c781422d2874f8d7e4ba28 (diff) |
[ubsan] Fix Asan internal alloc corruption in PR33221 test.
MAP_FIXED discards the existing mapping at the given address.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan')
-rw-r--r-- | test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp b/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp index e026e8d05..a5e61c2d2 100644 --- a/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp +++ b/test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp @@ -22,7 +22,7 @@ public: int main() { int page_size = getpagesize(); - void *non_accessible = mmap(nullptr, page_size, PROT_NONE, + void *non_accessible = mmap(nullptr, page_size * 2, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); if (non_accessible == MAP_FAILED) |