mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1695: Vim9: crash when using varargs type "any"
Problem: Vim9: crash when using varargs type "any". Solution: Check if uf_va_type is &t_any. (closes #6957)
This commit is contained in:
@@ -829,6 +829,7 @@ call_def_function(
|
||||
// Check the type of the list items.
|
||||
tv = STACK_TV_BOT(-1);
|
||||
if (ufunc->uf_va_type != NULL
|
||||
&& ufunc->uf_va_type != &t_any
|
||||
&& ufunc->uf_va_type->tt_member != &t_any
|
||||
&& tv->vval.v_list != NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user