about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-11-02 04:20:36 +0000
committerbors <bors@rust-lang.org>2018-11-02 04:20:36 +0000
commitad4c885225fc36cc3b58a9e71d1383c82c8198a7 (patch)
tree1f1d01e16ad8e7af7a4701c7dfb3b9d6ebbf3578 /src/rustllvm/RustWrapper.cpp
parent5eda136f622f9cbfe706e775fcaa3a0169fd4ae1 (diff)
parent36fe3b605a7a7143a14565272140ba1b43c1b041 (diff)
downloadrust-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