From: Alex Crichton Date: Tue, 24 Mar 2015 21:50:48 +0000 (-0700) Subject: rollup merge of #23668: alexcrichton/io-zero X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=5ed8733ea39927d267f4e99c16d3fdca671d8315;p=rust.git rollup merge of #23668: alexcrichton/io-zero 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 --- 5ed8733ea39927d267f4e99c16d3fdca671d8315