diff options
| author | bors <bors@rust-lang.org> | 2018-11-02 04:20:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-11-02 04:20:36 +0000 |
| commit | ad4c885225fc36cc3b58a9e71d1383c82c8198a7 (patch) | |
| tree | 1f1d01e16ad8e7af7a4701c7dfb3b9d6ebbf3578 /src/rustllvm/RustWrapper.cpp | |
| parent | 5eda136f622f9cbfe706e775fcaa3a0169fd4ae1 (diff) | |
| parent | 36fe3b605a7a7143a14565272140ba1b43c1b041 (diff) | |
| download | rust-ad4c885225fc36cc3b58a9e71d1383c82c8198a7.tar.gz rust-ad4c885225fc36cc3b58a9e71d1383c82c8198a7.zip | |
Auto merge of #55359 - alex:command-exec-uaf, r=alexcrichton
Fixes #46775 -- don't mutate the process's environment in Command::exec Instead, pass the environment to execvpe, so the kernel can apply it directly to the new process. This avoids a use-after-free in the case where exec'ing the new process fails for any reason, as well as a race condition if there are other threads alive during the exec. Fixes #46775
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
