diff options
| author | Will Woods <w@wizard.zone> | 2025-02-28 17:30:53 -0800 |
|---|---|---|
| committer | Will Woods <w@wizard.zone> | 2025-02-28 17:30:53 -0800 |
| commit | b1196717fcba13d8ff73ec06c3d8c5bee3b74ec9 (patch) | |
| tree | c49815b34416472ea9aff2a2c99731ce92244d16 /compiler/rustc_codegen_llvm/src | |
| parent | 60493b8973ac5ba632952eaa2f212b56bb97ccfe (diff) | |
| download | rust-b1196717fcba13d8ff73ec06c3d8c5bee3b74ec9.tar.gz rust-b1196717fcba13d8ff73ec06c3d8c5bee3b74ec9.zip | |
Tweak BufReader::peek() doctest to expose bug in Buffer::read_more()
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
