mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
vim-patch:8.2.2977: crash when using a null function reference
Problem: Crash when using a null function reference. (Naohiro Ono)
Solution: Check for an invalid function name. (closes vim/vim#8367)
22db0d549f
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -2010,11 +2010,15 @@ func Test_call()
|
||||
call assert_fails("call call('Mylen', [], 0)", 'E715:')
|
||||
call assert_fails('call foo', 'E107:')
|
||||
|
||||
" This once caused a crash.
|
||||
" These once caused a crash.
|
||||
" Nvim doesn't have null functions
|
||||
" call call(test_null_function(), [])
|
||||
" Nvim doesn't have null partials
|
||||
" call call(test_null_partial(), [])
|
||||
" Nvim doesn't have null functions
|
||||
" call assert_fails('call test_null_function()()', 'E1192:')
|
||||
" Nvim doesn't have null partials
|
||||
" call assert_fails('call test_null_partial()()', 'E117:')
|
||||
endfunc
|
||||
|
||||
func Test_char2nr()
|
||||
|
||||
Reference in New Issue
Block a user