Skip to content

Commit

Permalink
Disable asan instrumentation for StackGrowsDown().
Browse files Browse the repository at this point in the history
git-svn-id: http://googletest.googlecode.com/svn/trunk@688 861a406c-534a-0410-8894-cb66d6ee9925
  • Loading branch information
[email protected] committed Jun 17, 2014
1 parent f0d7f45 commit 041a4ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gtest-death-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,8 @@ void StackLowerThanAddress(const void* ptr, bool* result) {
*result = (&dummy < ptr);
}

// Make sure AddressSanitizer does not tamper with the stack here.
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
bool StackGrowsDown() {
int dummy;
bool result;
Expand Down

0 comments on commit 041a4ce

Please sign in to comment.