diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2018-10-25 19:44:32 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2018-11-01 12:51:24 +0000 |
| commit | 36fe3b605a7a7143a14565272140ba1b43c1b041 (patch) | |
| tree | b6e50e01308ebee18923dbf6d22d3f81338549c5 /src/test/incremental/thinlto | |
| parent | 365b9001e588cf3d91561894b0e44389e31ae000 (diff) | |
| download | rust-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/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
