Mitchell Hashimoto 9c165ecbd2 terminal: clamp cursor left above scroll region with XTREVWRAP2
Fixes a crash found through fuzzing. This crash is also exhibited in
xterm (as of v384). The issue arises when you set the cursor above the top
scroll margin, then issue a large cursor left (CSI D) with extended reverse
wrap (?1045) set. Extended reverse wrap loops back until it reaches the top
scroll then wraps around. But since the cursor is before the top scroll,
xterm just arbitrarily moves back into negative row numbers, which reads into
bad memory.

We decided to fix this by clamping to (0,0) and exiting because this
will mimic the xterm behavior for valid values of cursor left count
(prior to crashing).
2023-10-26 22:38:33 -07:00
..
2023-10-24 15:02:26 -07:00
2023-10-24 15:02:26 -07:00
2023-06-30 12:15:31 -07:00
2023-10-24 15:27:16 -07:00
2023-09-23 22:46:16 -07:00
2023-08-08 14:27:34 +02:00
2023-09-20 12:35:52 -07:00
2023-10-24 15:27:16 -07:00
2022-08-18 11:42:32 -07:00
2022-04-26 16:18:34 -07:00
2023-08-08 14:27:34 +02:00