mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 17:24:29 +00:00
vim-patch:7.4.816
Problem: Invalid memory access when doing ":fun X(".
Solution: Check for missing ')'. (Dominique Pelle)
dd8a5286e1
This commit is contained in:
@@ -19626,7 +19626,10 @@ void ex_function(exarg_T *eap)
|
||||
break;
|
||||
}
|
||||
}
|
||||
++p; /* skip the ')' */
|
||||
if (*p != ')') {
|
||||
goto erret;
|
||||
}
|
||||
++p; // skip the ')'
|
||||
|
||||
/* find extra arguments "range", "dict" and "abort" */
|
||||
for (;; ) {
|
||||
|
||||
Reference in New Issue
Block a user