diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-25 02:22:02 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-25 02:39:24 -0400 |
| commit | 52488ea6fbda4db821e8bad305241504d7fda1c0 (patch) | |
| tree | 11931fc936fbffd80c7bdeeba41eb6412aa0b870 /src/nvim/testdir | |
| parent | fb059a1741b49e253e0a90717d1ff983bcee90ab (diff) | |
| download | rneovim-52488ea6fbda4db821e8bad305241504d7fda1c0.tar.gz rneovim-52488ea6fbda4db821e8bad305241504d7fda1c0.tar.bz2 rneovim-52488ea6fbda4db821e8bad305241504d7fda1c0.zip | |
vim-patch:8.1.0910: crash with tricky search pattern
Problem: Crash with tricky search pattern. (Kuang-che Wu)
Solution: Check for runnning out of memory. (closes vim/vim#3950)
https://github.com/vim/vim/commit/15bbd6ec871a0efdd16256e1fccbaac0fd374cbd
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_regexp_latin.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_regexp_latin.vim b/src/nvim/testdir/test_regexp_latin.vim index 5fb6e78baa..b5e99b0ed3 100644 --- a/src/nvim/testdir/test_regexp_latin.vim +++ b/src/nvim/testdir/test_regexp_latin.vim @@ -91,3 +91,10 @@ func Test_recursive_addstate() let lnum = search('\v((){328}){389}') call assert_equal(0, lnum) endfunc + +func Test_out_of_memory() + new + s/^/,n + " This will be slow... + call assert_fails('call search("\\v((n||<)+);")', 'E363:') +endfunc |