mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user