1
0
forked from aniani/vim

patch 8.2.4975: recursive command line loop may cause a crash

Problem:    Recursive command line loop may cause a crash.
Solution:   Limit recursion of getcmdline().
This commit is contained in:
Bram Moolenaar
2022-05-17 20:11:02 +01:00
parent 4748c4bd64
commit 51f0bfb88a
3 changed files with 26 additions and 0 deletions

View File

@@ -3392,4 +3392,16 @@ func Test_screenpos_and_completion()
call feedkeys(":let a\<C-R>=Check_completion()\<CR>\<Esc>", "xt")
endfunc
func Test_recursive_register()
let @= = ''
silent! ?e/
let caught = 'no'
try
normal //
catch /E169:/
let caught = 'yes'
endtry
call assert_equal('yes', caught)
endfunc
" vim: shiftwidth=2 sts=2 expandtab