mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 07:41:27 +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.