mirror of
https://github.com/neovim/neovim.git
synced 2026-06-29 06:30:32 +00:00
Problem: Heap UAF if a terminal buffer is deleted during TermRequest in
Normal mode.
Solution: Increment terminal refcount before triggering TermRequest, and
destroy the terminal if the buffer is closed during that.