summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-29 15:06:14 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-29 15:06:14 +0200
commitc2b717ebd6719e722dcb5f10e4c74033a53ff7c7 (patch)
tree30ce598b55ee66e3941685da2ec78ce369d5e9b3 /src/regexp_nfa.c
parent1d478a6242871dcf4566814d3c6208df17991426 (diff)
downloadvim-git-c2b717ebd6719e722dcb5f10e4c74033a53ff7c7.tar.gz
patch 7.4.887v7.4.887
Problem: Using uninitialized memory for regexp with back reference. (Dominique Pelle) Solution: Initialize end_lnum.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 609da0371..a21c3c03f 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -4523,6 +4523,7 @@ skip_add:
sub->list.multi[subidx].start_col =
(colnr_T)(reginput - regline + off);
}
+ sub->list.multi[subidx].end_lnum = -1;
}
else
{