From d610cbd252f5595f2558960b97424d67c7ffe84c Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Sat, 23 Feb 2019 23:31:02 -0600 Subject: [PATCH] limit CSI params to 16 max --- src/jexer/tterminal/ECMA48.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jexer/tterminal/ECMA48.java b/src/jexer/tterminal/ECMA48.java index a4197fb9..eb13c0b4 100644 --- a/src/jexer/tterminal/ECMA48.java +++ b/src/jexer/tterminal/ECMA48.java @@ -2662,7 +2662,7 @@ public class ECMA48 implements Runnable { csiParams.set(csiParams.size() - 1, x); } - if (ch == ';') { + if ((ch == ';') && (csiParams.size() < 16)) { csiParams.add(Integer.valueOf(0)); } } -- 2.27.0