rust/src/libstd
bors ad4c885225 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
2018-11-02 04:20:36 +00:00
..
collections Auto merge of #53804 - RalfJung:ptr-invalid, r=nagisa 2018-09-16 18:03:39 +00:00
ffi make CStr::from_bytes_with_nul_unchecked() a const fn 2018-10-02 04:25:40 -07:00
io Auto merge of #53517 - phungleson:fix-impl-from-for-error, r=frewsxcv 2018-10-07 22:00:04 +00:00
net Small changes to fix documentation auto compile issues 2018-10-11 15:35:48 -04:00
os Move std::os::raw::c_void into libcore and re-export in libstd 2018-09-14 16:19:59 +01:00
prelude Reformat std prelude source to show it is the sum of core and alloc preludes 2018-07-07 23:16:27 +02:00
sync fix typos in various places 2018-10-23 15:56:25 +02:00
sys Fixes #46775 -- don't mutate the process's environment in Command::exec 2018-11-01 12:51:24 +00:00
sys_common Improve output if no_lookup_host_duplicates fails 2018-09-15 17:17:35 +02:00
tests Breaking change upgrades 2018-09-04 13:22:08 -06:00
thread thread::unpark: Avoid notifying with mutex locked. 2018-10-30 22:54:35 +00:00
alloc.rs Bump to 1.31.0 and bootstrap from 1.30 beta 2018-09-27 20:52:53 -07:00
ascii.rs Remove unstable and deprecated APIs 2018-07-30 18:18:23 +02:00
build.rs Prefer unwrap_or_else to unwrap_or in case of function calls/allocations 2018-10-19 09:45:45 +02:00
Cargo.toml std: Implement TLS for wasm32-unknown-unknown 2018-10-11 09:57:55 -07:00
env.rs make reference to dirs crate clickable in terminals 2018-07-12 12:48:10 +02:00
error.rs Rollup merge of #53523 - phungleson:fix-impl-from-for-std-error, r=GuillaumeGomez 2018-10-04 12:20:05 +02:00
f32.rs Fix doc for new copysign functions 2018-10-24 15:19:23 -07:00
f64.rs Fix doc for new copysign functions 2018-10-24 15:19:23 -07:00
fs.rs "(using ..." doesn't have the matching ")" 2018-10-10 01:09:18 -07:00
future.rs Remove spawning from task::Context 2018-09-19 15:01:19 -07:00
keyword_docs.rs Hopefully fix compile error 2018-10-23 22:27:02 +02:00
lib.rs Bump nightly to 1.32.0 2018-10-31 11:53:50 -07:00
macros.rs Fix incorrect link in println! documentation 2018-10-14 08:14:21 -04:00
memchr.rs Fix typos found by codespell. 2018-08-19 17:41:28 +02:00
num.rs Stabilize num::NonZeroU* 2018-05-16 19:11:31 +02:00
panic.rs it's auto traits that make for automatic implementations 2018-10-08 17:44:33 +02:00
panicking.rs rustc: Allow #[no_mangle] anywhere in a crate 2018-10-06 13:57:30 -07:00
path.rs Implement FromStr for PathBuf 2018-10-17 15:54:00 +02:00
primitive_docs.rs Rollup merge of #55247 - peterjoel:peterjoel-prim-char-doc-example, r=joshtriplett 2018-10-25 14:31:07 +02:00
process.rs Documents From implementations for Stdio 2018-10-24 22:02:32 +02:00
rt.rs Deny bare trait objects in src/libstd. 2018-07-10 20:35:36 +02:00
time.rs Stabilize SystemTime::UNIX_EPOCH 2018-05-28 18:24:01 -06:00