mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2666: Vim9: not enough function arguments checked for string
Problem: Vim9: not enough function arguments checked for string. Solution: Check in ch_logfile(), char2nr() and others.
This commit is contained in:
@@ -5298,6 +5298,9 @@ var2fpos(
|
||||
return &pos;
|
||||
}
|
||||
|
||||
if (in_vim9script() && check_for_string_arg(varp, 0) == FAIL)
|
||||
return NULL;
|
||||
|
||||
name = tv_get_string_chk(varp);
|
||||
if (name == NULL)
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user