mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3847: illegal memory access when using a lambda with an error
Problem: Illegal memory access when using a lambda with an error. Solution: Avoid skipping over the NUL after a string.
This commit is contained in:
@@ -3871,12 +3871,15 @@ eval_lambda(
|
||||
++*arg;
|
||||
ret = eval1(arg, rettv, evalarg);
|
||||
*arg = skipwhite_and_linebreak(*arg, evalarg);
|
||||
if (**arg != ')')
|
||||
if (**arg == ')')
|
||||
{
|
||||
++*arg;
|
||||
}
|
||||
else
|
||||
{
|
||||
emsg(_(e_missing_closing_paren));
|
||||
ret = FAIL;
|
||||
}
|
||||
++*arg;
|
||||
}
|
||||
if (ret != OK)
|
||||
return FAIL;
|
||||
|
Reference in New Issue
Block a user