mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1191: Vim9: crash when function calls itself
Problem: Vim9: crash when function calls itself. Solution: Add status UF_COMPILING. (closes #6441)
This commit is contained in:
@@ -6802,6 +6802,8 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx)
|
||||
else if (add_def_function(ufunc) == FAIL)
|
||||
return FAIL;
|
||||
|
||||
ufunc->uf_def_status = UF_COMPILING;
|
||||
|
||||
CLEAR_FIELD(cctx);
|
||||
cctx.ctx_ufunc = ufunc;
|
||||
cctx.ctx_lnum = -1;
|
||||
|
Reference in New Issue
Block a user