diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-08-11 15:54:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-08-11 15:54:52 +0200 |
commit | dd8a5286e191d23410c5970a0f17f01c7ff1211b (patch) | |
tree | c0ac60a4bef3fbc1d9c69fabc23a80a7b41707bf /src/eval.c | |
parent | 73627d0bd43e63a67995ab1c826f1cec4ed22560 (diff) |
patch 7.4.816v7.4.816
Problem: Invalid memory access when doing ":fun X(".
Solution: Check for missing ')'. (Dominique Pelle)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index cc9e878812..9de2764154 100644 --- a/src/eval.c +++ b/src/eval.c @@ -22557,6 +22557,8 @@ ex_function(eap) break; } } + if (*p != ')') + goto erret; ++p; /* skip the ')' */ /* find extra arguments "range", "dict" and "abort" */ |