summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2015-08-11 15:27:13 +0200
committerBram Moolenaar <bram@vim.org>2015-08-11 15:27:13 +0200
commitfffbf232ed0b961304bac17aeb1baef6f36f9854 (patch)
treef5a8bed1ce409fae42c627bbf668a2c72b1263b3 /src
parent5b46d189f692d476a947ef75a83c02f9942a6956 (diff)
downloadvim-fffbf232ed0b961304bac17aeb1baef6f36f9854.tar.gz
patch 7.4.814v7.4.814v7-4-814
Problem: Illegal memory access with "sy match a fold". Solution: Check for empty string. (Dominique Pelle)
Diffstat (limited to 'src')
-rw-r--r--src/syntax.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 6900d573..000d5984 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -5654,7 +5654,7 @@ get_syn_pattern(arg, ci)
char_u *cpo_save;
/* need at least three chars */
- if (arg == NULL || arg[1] == NUL || arg[2] == NUL)
+ if (arg == NULL || arg[0] == NUL || arg[1] == NUL || arg[2] == NUL)
return NULL;
end = skip_regexp(arg + 1, *arg, TRUE, NULL);
diff --git a/src/version.c b/src/version.c
index 862759c1..53fa03dd 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 */
/**/
+ 814,
+/**/
813,
/**/
812,