From 77baf3890e199dd21a75d421b7fd8e95e1147db5 Mon Sep 17 00:00:00 2001 From: tomara_x <86204514+tomara-x@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:46:04 +0300 Subject: [PATCH] limit swap() arity to 1000 --- src/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process.rs b/src/process.rs index 3684e85..9db762e 100644 --- a/src/process.rs +++ b/src/process.rs @@ -1469,7 +1469,7 @@ pub fn process( let params = params.split(',').collect::>(); for s in params { if let Ok(n) = s.parse::() { - p.push(n); + p.push(std::cmp::Ord::min(n,1000)); } } }