diff options
| author | Florian Bartels <Florian.Bartels@elektrobit.com> | 2022-09-29 11:04:25 +0200 |
|---|---|---|
| committer | Florian Bartels <Florian.Bartels@elektrobit.com> | 2022-10-06 09:02:22 +0200 |
| commit | 8e70c82f572be26a9d838e52f451b270160ffdba (patch) | |
| tree | b4e53c247716a05dbdf83f7249feabca49d548e4 /compiler/rustc_codegen_llvm/src | |
| parent | 0152393048c4eb6c6d2aec63e9899cc86a269b44 (diff) | |
| download | rust-8e70c82f572be26a9d838e52f451b270160ffdba.tar.gz rust-8e70c82f572be26a9d838e52f451b270160ffdba.zip | |
Prevent UB in child process after calling libc::fork
After calling libc::fork, the child process tried to access a TLS variable when processing a panic. This caused a memory allocation which is UB in the child. To prevent this from happening, the panic handler will not access the TLS variable in case `panic::always_abort` was called before.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
