about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-24 11:14:35 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-24 13:42:19 -0700
commit4ccf374b4a2ef24862d365783b70217bbfbf3bc7 (patch)
tree60c3123cc35450231bbb7a8b4efc4bce6ef192d8 /src/libstd/sys/unix/stack_overflow.rs
parent28a0b25f424090255966273994748a9f9901059f (diff)
downloadrust-4ccf374b4a2ef24862d365783b70217bbfbf3bc7.tar.gz
rust-4ccf374b4a2ef24862d365783b70217bbfbf3bc7.zip
std: Zero memory when calling `read_to_end()`
This commit alters the behavior of the `Read::read_to_end()` method to zero all
memory instead of passing an uninitialized buffer to `read`. This change is
motivated by the [discussion on the internals forum][discuss] where the
conclusion has been that the standard library will not expose uninitialized
memory.

[discuss]: http://internals.rust-lang.org/t/uninitialized-memory/1652

Closes #20314
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions