0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -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:
Bram Moolenaar
2021-03-27 21:23:30 +01:00
parent 7b45d46cf7
commit c580943965
6 changed files with 54 additions and 0 deletions

View File

@@ -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;