summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorGabriel Ford <gabe@fordltc.net>2025-06-30 09:22:42 -0400
committerGitHub <noreply@github.com>2025-06-30 06:22:42 -0700
commitd6d1bfd20da05e8bd40441ecdc0ac75af66f77eb (patch)
treec66e01358d8760f85fa6a5d7aa4f61b4fda768d2 /runtime/lua/vim/_editor.lua
parented7ff848a02d37975dd56c2d67e0fe23e75f68dd (diff)
fix(term): terminal attr index may exceed TERM_ATTRS_MAX #34318
Problem: Currently terminal highlight attribute buffers are statically allocated be the size of `TERM_ATTRS_MAX`. This unique case isn't respected in some places in the ui_compositor. Due to this, when a terminal window has lines longer them `TERM_ATTRS_MAX`, the compositor will go past the end of the buffer causing a crash due to out of bounds access. Solution: Add check to ensure we don't query terminal highlight attrs past `TERM_ATTRS_MAX` in `win_line()`. Fixes #30374
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions