From b59095f830fbacbe2631dbbaa92f8e9606184015 Mon Sep 17 00:00:00 2001 From: Vladimir Isaev Date: Tue, 11 Aug 2020 17:15:58 +0300 Subject: vlib: extend telnet protocol guard There is a number of TERMs with big length, such as 'screen.konsole-256color' (23). These TERMs can not be processed properly by vpp because maximum telnet byte stream supported is 24 and we need 6 more service bytes to send TTYPE. So I extended maximum depth guard to 32. Type: fix Signed-off-by: Vladimir Isaev Change-Id: I9ca506996a97e9567d06483c5f020d6cc394329c --- src/vlib/unix/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c index 5979dbdbd6a..e98eb3459fd 100644 --- a/src/vlib/unix/cli.c +++ b/src/vlib/unix/cli.c @@ -92,7 +92,7 @@ /** Maximum depth into a byte stream from which to compile a Telnet * protocol message. This is a safety measure. */ -#define UNIX_CLI_MAX_DEPTH_TELNET 24 +#define UNIX_CLI_MAX_DEPTH_TELNET 32 /** Maximum terminal width we will accept */ #define UNIX_CLI_MAX_TERMINAL_WIDTH 512 -- cgit 1.2.3-korg