Skip to content

Commit fea14ed

Browse files
committed
updated for version 7.3.824
Problem: Can redefine builtin functions. (ZyX) Solution: Disallow adding a function to g:.
1 parent 4c8719f commit fea14ed

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/eval.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21164,6 +21164,9 @@ ex_function(eap)
2116421164
if (arg[j] != NUL)
2116521165
emsg_funcname((char *)e_invarg2, arg);
2116621166
}
21167+
/* Disallow using the g: dict. */
21168+
if (fudi.fd_dict != NULL && fudi.fd_dict->dv_scope == VAR_DEF_SCOPE)
21169+
EMSG(_("E862: Cannot use g: here"));
2116721170
}
2116821171

2116921172
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ static char *(features[]) =
725725

726726
static int included_patches[] =
727727
{ /* Add new patch number below this line */
728+
/**/
729+
824,
728730
/**/
729731
823,
730732
/**/

0 commit comments

Comments
 (0)