From: Bram Moolenaar Date: Tue, 11 Aug 2015 13:54:52 +0000 (+0200) Subject: patch 7.4.816 X-Git-Tag: v7.4.816 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd8a5286e191d23410c5970a0f17f01c7ff1211b;p=vim patch 7.4.816 Problem: Invalid memory access when doing ":fun X(". Solution: Check for missing ')'. (Dominique Pelle) --- diff --git a/src/eval.c b/src/eval.c index cc9e87881..9de276415 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" */ diff --git a/src/version.c b/src/version.c index fc27f4146..e5f2b9482 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 816, /**/ 815, /**/