about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-15 10:00:38 +0000
committerbors <bors@rust-lang.org>2023-06-15 10:00:38 +0000
commitb4b7cd63d74f55b6d26b89d5dc3152a9332343f2 (patch)
tree2d24b850a251ed9bef28143395a81b1942d8835f /library/std/src/sys/unix/stack_overflow.rs
parent52036f5a4554b7067ec51c1232080c42bdeca20a (diff)
parent7380a4d7a163be356b96de01f7fc9d885ef6a894 (diff)
downloadrust-b4b7cd63d74f55b6d26b89d5dc3152a9332343f2.tar.gz
rust-b4b7cd63d74f55b6d26b89d5dc3152a9332343f2.zip
Auto merge of #2661 - DrMeepster:deref_operand_as, r=oli-obk
Dereference pointers in shims as correct types

Currently, shims will dereference pointers as the type written by the user. This can cause false positives, incorrect behavior such as #2136, and even ICEs if a field is not present.

This PR fixes this by having shims dereference pointers with types from `std` or `libc` that we can rely on the layout and field names of instead of with whatever the user passed in.

Fixes #1123
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions