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 | 11e304278658155f7d08b94a18c5ea76c5aea0e8 (patch) | |
tree | 0c172a63746b2d49825410f25df044a4a32557b9 /src | |
parent | 77d61650f5a38581f7030fbbc3c496e245e245ba (diff) | |
download | vim-11e304278658155f7d08b94a18c5ea76c5aea0e8.tar.gz |
Problem: Invalid memory access when doing ":fun X(".
Solution: Check for missing ')'. (Dominique Pelle)
Diffstat (limited to 'src')
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -22557,6 +22557,8 @@ ex_function(eap) break; } } + if (*p != ')') + goto erret; ++p; /* skip the ')' */ /* find extra arguments "range", "dict" and "abort" */ diff --git a/src/version.c b/src/version.c index fc27f414..e5f2b948 100644 --- 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 */ /**/ + 816, +/**/ 815, /**/ 814, |