mirror of
https://github.com/neovim/neovim.git
synced 2026-11-03 12:49:53 -06:00
Problem: Heap-buffer-overflow in spell_suggest() when the cursor is
beyond the end of the line, because a SpellFileMissing
autocommand changed the buffer (dvaave2025).
Solution: parse_spelllang() may run autocommands, so validate the cursor
position and re-take the saved position afterwards.
fixes: vim/vim#21097
closes: vim/vim#21100
Supported by AI.
https://github.com/vim/vim/commit/6073903cda7b5838f3432b19a0e8293f494b4cd5
Co-authored-by: Christian Brabandt <cb@256bit.org>