mirror of
https://github.com/neovim/neovim.git
synced 2026-06-18 01:31:14 +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.
(cherry picked from commit b40880f88f)