comparison src/testdir/test_recover.vim @ 10896:d513b653f5d0 v8.0.0337

patch 8.0.0337: invalid memory access in :recover command commit https://github.com/vim/vim/commit/c525e3a1c20f6b5d9809c8b84f80090a8e416c92 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 18 16:59:02 2017 +0100 patch 8.0.0337: invalid memory access in :recover command Problem: Invalid memory access in :recover command. Solution: Avoid access before directory name. (Dominique Pelle, closes #1488)
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Feb 2017 17:00:05 +0100
parents
children cc3f6ad092c2
comparison
equal deleted inserted replaced
10895:c391bfbdb452 10896:d513b653f5d0
1 " Test :recover
2
3 func Test_recover_root_dir()
4 " This used to access invalid memory.
5 split Xtest
6 set dir=/
7 call assert_fails('recover', 'E305:')
8 close!
9
10 call assert_fails('split Xtest', 'E303:')
11 set dir&
12 endfunc
13
14 " TODO: move recover tests from test78.in to here.