mirror of
https://github.com/neovim/neovim
synced 2025-07-15 08:41:47 +00:00
fix(terminal): stack overflow when too many csi args (#34012)
fix: stack overflow when too many csi args Problem: Crash when csi contains > 16 args. It's easy to trigger when you attempt to pipe external terminal scrollback buffer. ```sh nvim --clean --cmd "term printf '\e[38:2:59:66:97;48:2:36:40:59;58:2:224:175:104;4:3m'" ``` Solution: Increase buffer size.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
|
||||
#define INTERMED_MAX 16
|
||||
|
||||
#define CSI_ARGS_MAX 16
|
||||
#define CSI_ARGS_MAX 32
|
||||
#define CSI_LEADER_MAX 16
|
||||
|
||||
#define BUFIDX_PRIMARY 0
|
||||
|
Reference in New Issue
Block a user