mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 23:48:54 +00:00
This patch makes BufReader::peek()'s doctest call read_more() to refill the buffer before the inner reader hits EOF. This exposes a bug in read_more() that causes an out-of-bounds slice access and segfault.