diff options
| author | bors <bors@rust-lang.org> | 2023-06-15 10:00:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-15 10:00:38 +0000 |
| commit | b4b7cd63d74f55b6d26b89d5dc3152a9332343f2 (patch) | |
| tree | 2d24b850a251ed9bef28143395a81b1942d8835f /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 52036f5a4554b7067ec51c1232080c42bdeca20a (diff) | |
| parent | 7380a4d7a163be356b96de01f7fc9d885ef6a894 (diff) | |
| download | rust-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
