]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.2128: Heap use after free in buf_check_timestamp() v9.1.2128
authorSean Dewar <6256228+seandewar@users.noreply.github.com>
Tue, 3 Feb 2026 15:00:12 +0000 (15:00 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 3 Feb 2026 15:00:12 +0000 (15:00 +0000)
commit392b428d1239e963020b73682cd03f17ffb538b3
treef2dd3f98ecd1ee3cc547f377511c211c45b8e4c5
parenta2e76bb8feaa91c5653267180f139cba1bfeec9a
patch 9.1.2128: Heap use after free in buf_check_timestamp()

Problem:  heap UAF if autocommands from reloading a file changed outside
          of Vim wipe its buffer.
Solution: Validate the bufref after buf_reload (Sean Dewar)

closes: #19317

Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/fileio.c
src/testdir/test_filechanged.vim
src/version.c