diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-05 06:37:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-05 06:37:16 +0100 |
| commit | d8e9ddc843e4da26815492bb0b3a6ca3a4713ed2 (patch) | |
| tree | 7ebd7eb2232fd489bcfe328287c2052583ba2d41 /compiler/rustc_pattern_analysis/src | |
| parent | e348f0739d85ed962fdd517c566ec222a96b3adb (diff) | |
| parent | 4c694db25270243597657ec73ec9912f2ddfb0cc (diff) | |
| download | rust-d8e9ddc843e4da26815492bb0b3a6ca3a4713ed2.tar.gz rust-d8e9ddc843e4da26815492bb0b3a6ca3a4713ed2.zip | |
Rollup merge of #120607 - conradludgate:fix-120603, r=dtolnay
fix #120603 by adding a check in default_read_buf Fixes #120603 by checking the returned read n is in-bounds of the cursor. Interestingly, I noticed that `BorrowedBuf` side-steps this issue by using checked accesses. Maybe this can be switched to unchecked to mirror what BufReader does https://github.com/rust-lang/rust/blob/bf3c6c5bed498f41ad815641319a1ad9bcecb8e8/library/core/src/io/borrowed_buf.rs#L95
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
