# HG changeset patch # User Bram Moolenaar # Date 1361369983 -3600 # Node ID f5ef9b9c18cd9345eca783fb0c6d4ed50e215cb8 # Parent 839d3e84696dc78d94c1e37b7023432a1a2b57fa updated for version 7.3.824 Problem: Can redefine builtin functions. (ZyX) Solution: Disallow adding a function to g:. diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -21164,6 +21164,9 @@ ex_function(eap) if (arg[j] != NUL) emsg_funcname((char *)e_invarg2, arg); } + /* Disallow using the g: dict. */ + if (fudi.fd_dict != NULL && fudi.fd_dict->dv_scope == VAR_DEF_SCOPE) + EMSG(_("E862: Cannot use g: here")); } /* diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -726,6 +726,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 824, +/**/ 823, /**/ 822,