aboutsummaryrefslogtreecommitdiff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2018-09-05 21:15:16 +0000
committerGitHub <noreply@github.com>2018-09-05 21:15:16 +0000
commit43882ade33d4c14ee7248e489a2d33395faaa0b1 (patch)
treec976915d53a8ce1cc072f86424323255afd61d9b /Cargo.lock
parent72495172c25e00799f29eb2e79fe40ddfa189866 (diff)
downloadalacritty-43882ade33d4c14ee7248e489a2d33395faaa0b1.tar.gz
alacritty-43882ade33d4c14ee7248e489a2d33395faaa0b1.zip
Fix substraction underflow with IL sequence
The IL escape sequence (CSI Ps L) allows inserting blank, uninitialized lines. `Ps` is a placeholder for the number of lines that should be inserted. Before this change Alacritty would crash when a large number of lines was passed as `Ps` parameter. The issue was caused whenever the current line of the cursor plus the lines that should be inserted would leave the bottom of the terminal, since this makes indexing impossible. This patch makes sure that the biggest amount of lines inserted does never exceed the end of the visible region minus the current line of the curser, which fixes the underflow issue. This fixes #1515.
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions