mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-03 19:19:28 +08:00
708372f24921c25a67fda4489df61d69163f2dca
Add a regression test that exercises the code path which crashed in v0.46.2 (#10017): when paused_rendering is active and a selection extends into the scrollback, the inner loop of apply_selection iterates with a negative y. Without the recently-added paused_y translation and the paused_y < 0 guard, the call to linebuf_init_line treats the negative y as a huge unsigned index_type and reads ~4GB out of bounds in line_attrs[idx], crashing with SIGBUS. The test reproduces the trigger deterministically via the Screen Python bindings and asserts that current_selections() returns the expected buffer instead of crashing.
= kitty - the fast, feature-rich, cross-platform, GPU based terminal If you live in the terminal, *kitty* is made for **you**! See https://sw.kovidgoyal.net/kitty/[the kitty website]. image:https://github.com/kovidgoyal/kitty/workflows/CI/badge.svg["Build status", link="https://github.com/kovidgoyal/kitty/actions?query=workflow%3ACI"] https://sw.kovidgoyal.net/kitty/faq/[Frequently Asked Questions] To ask other questions about kitty usage, use either the https://github.com/kovidgoyal/kitty/discussions/[discussions on GitHub] or the https://www.reddit.com/r/KittyTerminal[Reddit community] Packaging status in various repositories: image:https://repology.org/badge/vertical-allrepos/kitty-terminal.svg?columns=3&header=kitty["Packaging status", link="https://repology.org/project/kitty-terminal/versions"]
Languages
Python
38.6%
C
28%
Go
26.3%
Objective-C
5.5%
Shell
1%
Other
0.5%