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;