Fix initialization of badhandler_low_water_mark in SigaltstackTest.

It is now correctly initialized to the top of the signal stack.
Previously it was initialized to the address of 'stack.ss_sp' on
the main thread stack.

PiperOrigin-RevId: 258248363
This commit is contained in:
Neel Natu 2019-07-15 15:21:12 -07:00 committed by gVisor bot
parent 9b4d3280e1
commit ab44d145bb
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ TEST(SigaltstackTest, WalksOffBottom) {
// Trigger a single fault.
badhandler_low_water_mark =
reinterpret_cast<char*>(&stack.ss_sp) + SIGSTKSZ; // Expected top.
static_cast<char*>(stack.ss_sp) + SIGSTKSZ; // Expected top.
badhandler_recursive_faults = 0; // Disable refault.
Fault();
EXPECT_TRUE(badhandler_on_sigaltstack);