# HG changeset patch # User Bram Moolenaar # Date 1439300769 -7200 # Node ID fc099c55a36a2a6abacbb0542d94a4e9ebd40cfb # Parent 0b27ef95a7a00b784207d84096cf149cffa1d931 patch 7.4.815 Problem: Invalid memory access when doing ":call g:". Solution: Check for an empty name. (Dominique Pelle) diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -21371,6 +21371,7 @@ find_var_in_ht(ht, htname, varname, no_a /* * Find the hashtab used for a variable name. + * Return NULL if the name is not valid. * Set "varname" to the start of name without ':'. */ static hashtab_T * @@ -21380,6 +21381,8 @@ find_var_ht(name, varname) { hashitem_T *hi; + if (name[0] == NUL) + return NULL; if (name[1] != ':') { /* The name must not start with a colon or #. */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 815, +/**/ 814, /**/ 813,