aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/secure.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2024-02-11 20:15:47 +0000
committerSean Dewar <6256228+seandewar@users.noreply.github.com>2024-03-08 23:24:03 +0000
commitb1e24f240baeea80dcf4a3d8453fed0230fb88fd (patch)
treea41992d36bc950c8f8f2478f7b477622d2d16e18 /runtime/lua/vim/secure.lua
parente55a502ed413d2bc8954b5227acfb34c8689f979 (diff)
downloadrneovim-b1e24f240baeea80dcf4a3d8453fed0230fb88fd.tar.gz
rneovim-b1e24f240baeea80dcf4a3d8453fed0230fb88fd.tar.bz2
rneovim-b1e24f240baeea80dcf4a3d8453fed0230fb88fd.zip
fix(api): avoid open_win UAF if target buf deleted by autocmds
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.
Diffstat (limited to 'runtime/lua/vim/secure.lua')
0 files changed, 0 insertions, 0 deletions