[vim/vim] win_splitmove UAF if win_split_ins autocommands delete "wp" (PR #14078)

7 views
Skip to first unread message

Sean Dewar

unread,
Feb 22, 2024, 3:40:01 PMFeb 22
to vim/vim, Subscribed

Problem: heap-use-after-free in win_splitmove if Enter/Leave autocommands from
win_split_ins immediately closes "wp".

Solution: check that "wp" is valid after win_split_ins.

(This one's not a regression; just missed this possibility previously)


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/14078

Commit Summary

  • bbf7cdc win_splitmove UAF if win_split_ins autocommands delete "wp"

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14078@github.com>

Christian Brabandt

unread,
Feb 24, 2024, 4:20:36 AMFeb 24
to vim/vim, Subscribed

thanks for that. Makes sense of course.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14078/c1962308148@github.com>

Christian Brabandt

unread,
Feb 24, 2024, 4:22:59 AMFeb 24
to vim/vim, Subscribed

Closed #14078 via abf7030.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/14078/issue_event/11910418037@github.com>

Reply all
Reply to author
Forward
0 new messages