mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00

Problem: WinNew and win_enter autocommands can delete the target buffer to switch to, causing a heap-use-after-free. Solution: store a bufref to the buffer, check it before attempting to switch.