1
0
forked from aniani/vim

patch 8.2.2848: crash whn calling partial

Problem:    Crash whn calling partial.
Solution:   Check for NULL pointer. (Dominique Pellé, closes #8202)
This commit is contained in:
Dominique Pelle
2021-05-13 14:55:55 +02:00
committed by Bram Moolenaar
parent 588cf7547b
commit fe8ebdbe5c
5 changed files with 18 additions and 8 deletions

View File

@@ -2150,6 +2150,10 @@ func Test_call()
eval mydict.len->call([], mydict)->assert_equal(4)
call assert_fails("call call('Mylen', [], 0)", 'E715:')
call assert_fails('call foo', 'E107:')
" This once caused a crash.
call call(test_null_function(), [])
call call(test_null_partial(), [])
endfunc
func Test_char2nr()