]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0594: Use-after-free with ":wqall" and a running terminal job v9.2.0594
authorHirohito Higashi <h.east.727@gmail.com>
Thu, 4 Jun 2026 19:25:50 +0000 (19:25 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 4 Jun 2026 19:25:50 +0000 (19:25 +0000)
commit3ba82a5e48fd238defdd2bd6d69bd825b8099227
tree1554b17872c064f7ac57bee1e9657da70e0ba486
parent2271d062e59dfcf409f2674d14e0bb9994f418c0
patch 9.2.0594: Use-after-free with ":wqall" and a running terminal job

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 (after v9.2.0593).
Solution: After stopping the job, check whether the buffer is still valid
          and restart the iteration from the first buffer if it was freed
          (Hirohito Higashi).

related: #20417
closes:  #20423

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/ex_cmds.c
src/version.c