]> granicus.if.org Git - vim/commitdiff
patch 7.4.816 v7.4.816
authorBram Moolenaar <Bram@vim.org>
Tue, 11 Aug 2015 13:54:52 +0000 (15:54 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 11 Aug 2015 13:54:52 +0000 (15:54 +0200)
Problem:    Invalid memory access when doing ":fun X(".
Solution:   Check for missing ')'. (Dominique Pelle)

src/eval.c
src/version.c

index cc9e8788128a5a893161716f420caf25a4ca94ae..9de2764154a1594974c0486de0ef749ef63b530b 100644 (file)
@@ -22557,6 +22557,8 @@ ex_function(eap)
            break;
        }
     }
+    if (*p != ')')
+       goto erret;
     ++p;       /* skip the ')' */
 
     /* find extra arguments "range", "dict" and "abort" */
index fc27f4146ac8a9774194724c31a18b24274e1a5e..e5f2b9482243543ef1a598c0a610b78b4ecae11e 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    816,
 /**/
     815,
 /**/