mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
patch 9.1.1400: [security]: use-after-free when evaluating tuple fails
Problem: [security]: use-after-free when evaluating tuple fails Solution: return early in case of an error (Yegappan Lakshmanan) closes: #17351 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
681f1c914f
commit
1307743697
@@ -5000,6 +5000,8 @@ eval9_nested_expr(
|
||||
else
|
||||
{
|
||||
ret = eval1(arg, rettv, evalarg); // recursive!
|
||||
if (ret != OK)
|
||||
return ret;
|
||||
|
||||
*arg = skipwhite_and_linebreak(*arg, evalarg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user