about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2018-10-25 19:44:32 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2018-11-01 12:51:24 +0000
commit36fe3b605a7a7143a14565272140ba1b43c1b041 (patch)
treeb6e50e01308ebee18923dbf6d22d3f81338549c5 /src/rustllvm/RustWrapper.cpp
parent365b9001e588cf3d91561894b0e44389e31ae000 (diff)
downloadrust-36fe3b605a7a7143a14565272140ba1b43c1b041.tar.gz
rust-36fe3b605a7a7143a14565272140ba1b43c1b041.zip
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions