We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e30763 commit 72a6bbfCopy full SHA for 72a6bbf
library/std/src/sys/pal/unix/stack_overflow.rs
@@ -97,7 +97,7 @@ mod imp {
97
) {
98
let (start, end) = GUARD.get();
99
// SAFETY: this pointer is provided by the system and will always point to a valid `siginfo_t`.
100
- let addr = unsafe { (*info).si_addr() as usize };
+ let addr = unsafe { (*info).si_addr().addr() };
101
102
// If the faulting address is within the guard page, then we print a
103
// message saying so and abort.
0 commit comments