diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-05 00:25:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 00:25:25 +0800 |
commit | 89232b8b4890824f93121483626af582f13758fe (patch) | |
tree | 837047b9041df8840b6bdeef9db0449404cd1551 /src/nvim/diff.c | |
parent | 1bd6e4469bb84bb49b342c10d9aa14ffd5f01187 (diff) | |
download | rneovim-89232b8b4890824f93121483626af582f13758fe.tar.gz rneovim-89232b8b4890824f93121483626af582f13758fe.tar.bz2 rneovim-89232b8b4890824f93121483626af582f13758fe.zip |
fix(tui): make a copy of data->params before unibi_format() (#21643)
Problem: When unibi_format() modifies params and data->buf overflows,
unibi_format() is called again, causing the params to be
modified twice. This can happen for escapes sequences that
use the %i terminfo format specifier (e.g. cursor_address),
which makes unibi_format() increase the param by 1.
Solution: Make a copy of data->params before calling unibi_format().
Diffstat (limited to 'src/nvim/diff.c')
0 files changed, 0 insertions, 0 deletions