diff options
| author | Gabriel Ford <gabe@fordltc.net> | 2025-06-30 09:22:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-30 06:22:42 -0700 |
| commit | d6d1bfd20da05e8bd40441ecdc0ac75af66f77eb (patch) | |
| tree | c66e01358d8760f85fa6a5d7aa4f61b4fda768d2 /runtime/lua/vim/_editor.lua | |
| parent | ed7ff848a02d37975dd56c2d67e0fe23e75f68dd (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
