aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkosak <kosak@google.com>2014-06-17 23:16:37 +0000
committerkosak <kosak@google.com>2014-06-17 23:16:37 +0000
commit21ee8a2e72871ca50148657bc217e9b838dcd903 (patch)
tree05d276051fd67ee5a5330146c243d6843955191a /src
parent8120f66c3249e253f03fdb48bee7e528bc038d31 (diff)
downloadgoogletest-21ee8a2e72871ca50148657bc217e9b838dcd903.tar.gz
googletest-21ee8a2e72871ca50148657bc217e9b838dcd903.tar.bz2
googletest-21ee8a2e72871ca50148657bc217e9b838dcd903.zip
Disable asan instrumentation for StackGrowsDown().
Diffstat (limited to 'src')
-rw-r--r--src/gtest-death-test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gtest-death-test.cc b/src/gtest-death-test.cc
index a6023fce..69fe7c1b 100644
--- a/src/gtest-death-test.cc
+++ b/src/gtest-death-test.cc
@@ -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;