[vim/vim] Use-after-free with ":wqall" and a running terminal job (after v9.2.0593) (PR #20423)

3 views
Skip to first unread message

h_east

unread,
12:18 AM (15 hours ago) 12:18 AM
to vim/vim, Subscribed
Problem:  Using ":wqall" with a running terminal buffer can free the
          buffer that is currently being iterated over in the buffer
          list, resulting in a use-after-free.
Solution: After stopping the job, check whether the buffer is still valid
          and restart the iteration from the first buffer if it was freed.

related: #20417


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

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

Commit Summary

  • bc8bd0b Use-after-free with ":wqall" and a running terminal job (after v9.2.0593)

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20423@github.com>

Reply all
Reply to author
Forward
0 new messages