]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1763: crash when passing invalid buffer to undotree() v9.0.1763
authorzeertzjq <zeertzjq@outlook.com>
Sun, 20 Aug 2023 16:35:10 +0000 (18:35 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 20 Aug 2023 16:41:42 +0000 (18:41 +0200)
commitab9f2ecfd4ecaf74eeed0e5ec41355589af3ec8f
tree69b60a7f93070e086eab544964c59d0de6b6bd61
parentf9037f186ad45b56c84f1efdc131480bec159e4f
patch 9.0.1763: crash when passing invalid buffer to undotree()

Problem:  crash when passing invalid buffer to undotree()
Solution: Use get_buf_arg() instead of tv_get_buf_from_arg().

closes: #12862
closes: #12830

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/testdir/test_undo.vim
src/undo.c
src/version.c