diff --git a/server/src/cmd.rs b/server/src/cmd.rs index 65e0c09167..f9723bc9c0 100644 --- a/server/src/cmd.rs +++ b/server/src/cmd.rs @@ -1017,6 +1017,10 @@ fn handle_time( ), Some(n) => match n.parse::() { Ok(n) => { + // Incase the number of digits in the number is greater than 16 + if n >= 1e17 { + return Err(format!("{} is invalid, cannot be larger than 16 digits", n)); + } if n < 0.0 { return Err(format!("{} is invalid, cannot be negative.", n)); }