]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #23668: alexcrichton/io-zero
authorAlex Crichton <alex@alexcrichton.com>
Tue, 24 Mar 2015 21:50:48 +0000 (14:50 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 24 Mar 2015 21:50:48 +0000 (14:50 -0700)
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

1  2 
src/libstd/io/mod.rs

Simple merge