diff options
| author | bors <bors@rust-lang.org> | 2020-06-02 16:30:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-06-02 16:30:44 +0000 |
| commit | fe10f1a49f5ca46e57261b95f46f519523f418fe (patch) | |
| tree | 487e97df395e553d62ef6c12573295a0fb95bbe4 /src/libstd | |
| parent | eeaf497b2a6bc065874e3d3367b1f3023c5bb3d3 (diff) | |
| parent | bed597a2203f5cb8859e3ce9525c508229aa8406 (diff) | |
| download | rust-fe10f1a49f5ca46e57261b95f46f519523f418fe.tar.gz rust-fe10f1a49f5ca46e57261b95f46f519523f418fe.zip | |
Auto merge of #72918 - Dylan-DPC:rollup-pnvj62b, r=Dylan-DPC
Rollup of 4 pull requests Successful merges: - #72884 (RawString error reporting cleanup ) - #72888 (Add a warning about infinite reading in read_(until|line)) - #72914 (Minor: off-by-one error in RELEASES.md) - #72916 (Update README.md) Failed merges: r? @ghost
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index ebe6d09023f..717d2868abf 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1883,6 +1883,10 @@ pub trait BufRead: Read { /// /// If successful, this function will return the total number of bytes read. /// + /// This function is blocking and should be used carefully: it is possible for + /// an attacker to continuously send bytes without ever sending the delimiter + /// or EOF. + /// /// # Errors /// /// This function will ignore all instances of [`ErrorKind::Interrupted`] and @@ -1945,6 +1949,10 @@ pub trait BufRead: Read { /// /// If this function returns `Ok(0)`, the stream has reached EOF. /// + /// This function is blocking and should be used carefully: it is possible for + /// an attacker to continuously send bytes without ever sending a newline + /// or EOF. + /// /// # Errors /// /// This function has the same error semantics as [`read_until`] and will |
