From: Vladimir Isaev Date: Tue, 11 Aug 2020 14:15:58 +0000 (+0300) Subject: vlib: extend telnet protocol guard X-Git-Tag: v21.01-rc0~64 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=b59095f830fbacbe2631dbbaa92f8e9606184015;p=vpp.git 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 --- 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