patch 7.4.887
Problem: Using uninitialized memory for regexp with back reference.
(Dominique Pelle)
Solution: Initialize end_lnum.
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 609da03..a21c3c0 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -4523,6 +4523,7 @@
sub->list.multi[subidx].start_col =
(colnr_T)(reginput - regline + off);
}
+ sub->list.multi[subidx].end_lnum = -1;
}
else
{
diff --git a/src/version.c b/src/version.c
index 5160298..2efbd46 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 887,
+/**/
886,
/**/
885,