diff options
| author | bors <bors@rust-lang.org> | 2022-09-11 22:19:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-11 22:19:24 +0000 |
| commit | 98e1f041b6e33598a18edb928ec9db93a850c6cb (patch) | |
| tree | e75bb7a5a5a60cc124da5fd38839fd366af20ccc /compiler/rustc_interface/src/errors.rs | |
| parent | 59e7a308e40fbc6b0901c9a8ee8ed51b17f9e772 (diff) | |
| parent | 2fa58080cbcdb42bda0438e2d37bdd8a4436a6f4 (diff) | |
| download | rust-98e1f041b6e33598a18edb928ec9db93a850c6cb.tar.gz rust-98e1f041b6e33598a18edb928ec9db93a850c6cb.zip | |
Auto merge of #101442 - joboet:null_check_tcs, r=thomcc
Check if TCS is a null pointer on SGX The `EENTER` instruction only checks if the TCS is aligned, not if it zero. Saying the address returned is a `NonNull<u8>` (for which `Tcs` is a type alias) is unsound. As well-behaved runners will not put the TCS at address zero, so the definition of `Tcs` is correct. However, `std` should check the address before casting it to a `NonNull`. ping `@jethrogb` `@raoulstrackx` `@rustbot` label I-unsound
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
