We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7905eff commit 3ed2b46Copy full SHA for 3ed2b46
src/tools/compiletest/src/read2.rs
@@ -83,7 +83,7 @@ impl ProcOutput {
83
}
84
85
let new_len = bytes.len();
86
- if *filtered_len <= HEAD_LEN + TAIL_LEN {
+ if (*filtered_len).min(new_len) <= HEAD_LEN + TAIL_LEN {
87
return;
88
89
0 commit comments