From 85741677c86f7686e3597a310f8059608e7816fb Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 15 Apr 2023 13:31:30 +0800 Subject: vim-patch:8.2.0634: crash with null partial and blob Problem: Crash with null partial and blob. Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan, closes vim/vim#5984) https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76 Co-authored-by: Bram Moolenaar --- test/old/testdir/test_cd.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'test/old/testdir/test_cd.vim') diff --git a/test/old/testdir/test_cd.vim b/test/old/testdir/test_cd.vim index 2b37f2c7c0..cffba99451 100644 --- a/test/old/testdir/test_cd.vim +++ b/test/old/testdir/test_cd.vim @@ -106,6 +106,7 @@ func Test_chdir_func() call assert_equal("", d) " Should not crash call chdir(d) + call assert_equal('', chdir([])) only | tabonly call chdir(topdir) -- cgit