diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-06-02 18:29:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-02 18:29:59 +0200 |
| commit | 9763e0c089c1e55d8e25bb4b97d0c61b8c402f11 (patch) | |
| tree | 007b401fbf0180aae24aed2b50e3e9d1fb9f12ca /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 466d3e702a0626305f32b3230b206f4f2b650bfc (diff) | |
| parent | d8cc2c1e4f8fa6bd49fe9c395353f9e24c7b51fc (diff) | |
| download | rust-9763e0c089c1e55d8e25bb4b97d0c61b8c402f11.tar.gz rust-9763e0c089c1e55d8e25bb4b97d0c61b8c402f11.zip | |
Rollup merge of #72888 - poliorcetics:improve-read_line-read_until-doc, r=Dylan-DPC
Add a warning about infinite reading in read_(until|line) Fix for #48788. This PR adds a warning to [`BufRead::read_line`](https://doc.rust-lang.org/stable/std/io/trait.BufRead.html#method.read_line) and [`BufRead::read_until`](https://doc.rust-lang.org/stable/std/io/trait.BufRead.html#method.read_until) about the possibility of an attack using the behaviour of these functions. I did not mention a possible fix (using [`Read::take`](https://doc.rust-lang.org/stable/std/io/trait.Read.html#method.take), should I ?
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
