Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 72a6bbf

Browse files
workingjubileejoboet
andauthoredJul 18, 2024··
unix: avoid fuzzy provenance casts
Co-authored-by: Jonas Böttiger <[email protected]>
1 parent 0e30763 commit 72a6bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/std/src/sys/pal/unix/stack_overflow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ mod imp {
9797
) {
9898
let (start, end) = GUARD.get();
9999
// 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 };
100+
let addr = unsafe { (*info).si_addr().addr() };
101101

102102
// If the faulting address is within the guard page, then we print a
103103
// message saying so and abort.

0 commit comments

Comments
 (0)
Please sign in to comment.