Cap escape sequence parameters to prevent long loops.

Fixes #271 github issue.
This commit is contained in:
Keith Winstein
2012-05-15 23:46:09 -04:00
parent dee09fb8fc
commit 9791768705
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -77,6 +77,9 @@ namespace Terminal {
void parse_params( void );
public:
static const int PARAM_MAX = 65535;
/* prevent evil escape sequences from causing long loops */
std::string terminal_to_host; /* this is the reply string */
Dispatcher();