Disable asan instrumentation for StackGrowsDown().

This commit is contained in:
kosak 2014-06-17 23:16:37 +00:00
parent 8120f66c32
commit 21ee8a2e72

View File

@ -985,6 +985,8 @@ void StackLowerThanAddress(const void* ptr, bool* result) {
*result = (&dummy < ptr); *result = (&dummy < ptr);
} }
// Make sure AddressSanitizer does not tamper with the stack here.
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
bool StackGrowsDown() { bool StackGrowsDown() {
int dummy; int dummy;
bool result; bool result;