From: Bram Moolenaar Date: Tue, 29 Sep 2015 13:06:14 +0000 (+0200) Subject: patch 7.4.887 X-Git-Tag: v7.4.887 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2b717ebd6719e722dcb5f10e4c74033a53ff7c7;p=vim 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 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 { diff --git a/src/version.c b/src/version.c index 51602989d..2efbd4616 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 887, /**/ 886, /**/