We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eea90e8 commit d055a0dCopy full SHA for d055a0d
library/std/src/sys/pal/unix/stack_overflow.rs
@@ -96,10 +96,7 @@ mod imp {
96
_data: *mut libc::c_void,
97
) {
98
let (start, end) = GUARD.get();
99
- if info.is_null() || !info.is_aligned() {
100
- rtabort!("signal handler passed null/non-aligned siginfo_t ptr")
101
- };
102
- // SAFETY: we've done our due diligence, so assume the pointer is to a real siginfo_t
+ // SAFETY: this pointer is provided by the system and will always point to a valid `siginfo_t`.
103
let addr = unsafe { (*info).si_addr() as usize };
104
105
// If the faulting address is within the guard page, then we print a
0 commit comments