From: Kevin Lamonte Date: Sun, 24 Feb 2019 05:31:02 +0000 (-0600) Subject: limit CSI params to 16 max X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=d610cbd252f5595f2558960b97424d67c7ffe84c;p=fanfix-jexer.git limit CSI params to 16 max --- diff --git a/src/jexer/tterminal/ECMA48.java b/src/jexer/tterminal/ECMA48.java index a4197fb..eb13c0b 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)); } }