diff options
author | Michael Brumlow <mbrumlow@gmail.com> | 2017-01-10 00:05:26 -0600 |
---|---|---|
committer | Michael Brumlow <mbrumlow@gmail.com> | 2017-01-10 00:57:49 -0600 |
commit | b99fda521447e38b4ca800d20e93e3bd2250517f (patch) | |
tree | dda3fd4d66c63d5c894ce4337838b94123f1a7d1 /res/text.f.glsl | |
parent | ff5156040eb7bc02b57aa8a25724c9cafab9b586 (diff) | |
download | alacritty-b99fda521447e38b4ca800d20e93e3bd2250517f.tar.gz alacritty-b99fda521447e38b4ca800d20e93e3bd2250517f.zip |
Fixing panic on cat /dev/urandom
- Checks to make sure lines count coming from the pty are within a proper
range before doing scrolling.
- Sanitizes scroll region when being set.
- Changes panic for unimplemented screen clear to a print statement.
The first two changes ensure scrolling won't crash us. By sanitizing the
region on set we don't have to complicate the scroll code with limits,
mins, or maxes to ensure the scroll operation is within the range.
Checking if the lines is greater than the total region allows us to
simply clear the region and avoid subtracting large numbers from small
ones.
Diffstat (limited to 'res/text.f.glsl')
0 files changed, 0 insertions, 0 deletions