]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0764: [security]: use-after-free when closing a buffer v9.1.0764
authorChristian Brabandt <cb@256bit.org>
Sun, 6 Oct 2024 15:31:10 +0000 (17:31 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 6 Oct 2024 15:36:31 +0000 (17:36 +0200)
commit51b62387be93c65fa56bbabe1c3c1ea5df187641
tree7201c63085dac1cc24b07d3e67a0040b4abd6858
parent818c641b6fac73b574a2b760213f515cee9a3c8e
patch 9.1.0764: [security]: use-after-free when closing a buffer

Problem:  [security]: use-after-free when closing a buffer
Solution: When splitting the window and editing a new buffer,
          check whether the newly to be edited buffer has been marked
          for deletion and abort in this case

Github Advisory:
https://github.com/vim/vim/security/advisories/GHSA-rj48-v4mq-j4vg

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/buffer.c
src/ex_cmds.c
src/proto/buffer.pro
src/testdir/test_autocmd.vim
src/version.c