0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.816

Problem:    Invalid memory access when doing ":fun X(".
Solution:   Check for missing ')'. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2015-08-11 15:54:52 +02:00
parent 73627d0bd4
commit dd8a5286e1
2 changed files with 4 additions and 0 deletions

View File

@@ -22557,6 +22557,8 @@ ex_function(eap)
break;
}
}
if (*p != ')')
goto erret;
++p; /* skip the ')' */
/* find extra arguments "range", "dict" and "abort" */