diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-11-26 00:57:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 00:57:44 +0000 |
commit | a2727d06f77973c47e1909a5f426789d6531bda9 (patch) | |
tree | 04cb2f53cec65697254dbd26560a68f102ff36f2 /alacritty_terminal/src/term/mod.rs | |
parent | 07684281901b8d287221ade9b7c93a0f437a26f1 (diff) | |
download | alacritty-a2727d06f77973c47e1909a5f426789d6531bda9.tar.gz alacritty-a2727d06f77973c47e1909a5f426789d6531bda9.zip |
Fix DoS caused by excessive CSI parameter values
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index accb4dc1..cffba149 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1691,7 +1691,7 @@ impl<T: EventListener> Handler for Term<T> { /// Insert tab at cursor position. #[inline] - fn put_tab(&mut self, mut count: i64) { + fn put_tab(&mut self, mut count: u16) { // A tab after the last column is the same as a linebreak. if self.grid.cursor.input_needs_wrap { self.wrapline(); @@ -1883,7 +1883,7 @@ impl<T: EventListener> Handler for Term<T> { } #[inline] - fn move_backward_tabs(&mut self, count: i64) { + fn move_backward_tabs(&mut self, count: u16) { trace!("Moving backward {} tabs", count); for _ in 0..count { @@ -1899,7 +1899,7 @@ impl<T: EventListener> Handler for Term<T> { } #[inline] - fn move_forward_tabs(&mut self, count: i64) { + fn move_forward_tabs(&mut self, count: u16) { trace!("[unimplemented] Moving forward {} tabs", count); } |