diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2024-02-11 20:15:47 +0000 |
---|---|---|
committer | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2024-03-08 23:24:03 +0000 |
commit | b1e24f240baeea80dcf4a3d8453fed0230fb88fd (patch) | |
tree | a41992d36bc950c8f8f2478f7b477622d2d16e18 /runtime/lua/vim/re.lua | |
parent | e55a502ed413d2bc8954b5227acfb34c8689f979 (diff) | |
download | rneovim-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/re.lua')
0 files changed, 0 insertions, 0 deletions