check for combine overflow
This commit is contained in:
parent
2ba8a63d81
commit
2a82666498
@ -171,7 +171,9 @@ impl Vbox {
|
|||||||
|
|
||||||
self.bound.push(combo.item);
|
self.bound.push(combo.item);
|
||||||
// self.bound.sort_unstable();
|
// self.bound.sort_unstable();
|
||||||
|
if self.bound.len() >= 10 {
|
||||||
|
return Err(err_msg("too many items bound"));
|
||||||
|
}
|
||||||
Ok(self)
|
Ok(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user