fix compiletest crash
This commit is contained in:
parent
7905eff5f7
commit
3ed2b46f28
@ -83,7 +83,7 @@ fn extend(&mut self, data: &[u8], filter_paths_from_len: &[String]) {
|
||||
}
|
||||
|
||||
let new_len = bytes.len();
|
||||
if *filtered_len <= HEAD_LEN + TAIL_LEN {
|
||||
if (*filtered_len).min(new_len) <= HEAD_LEN + TAIL_LEN {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user