# HG changeset patch # User Christian Brabandt # Date 1443532504 -7200 # Node ID cbdc02d71a18a29fcfd55945dbe3c5543042d492 # Parent 68143a4e27e71059d55d3edeadc3f2cd5eeb6a2d commit https://github.com/vim/vim/commit/c2b717ebd6719e722dcb5f10e4c74033a53ff7c7 Author: Bram Moolenaar Date: Tue Sep 29 15:06:14 2015 +0200 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 --- 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 { diff --git a/src/version.c b/src/version.c --- 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 */ /**/ + 887, +/**/ 886, /**/ 885,