changeset 7152:cbdc02d71a18 v7.4.887

commit https://github.com/vim/vim/commit/c2b717ebd6719e722dcb5f10e4c74033a53ff7c7 Author: Bram Moolenaar <Bram@vim.org> 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.
author Christian Brabandt <cb@256bit.org>
date Tue, 29 Sep 2015 15:15:04 +0200
parents 68143a4e27e7
children 1d7ee63f3f10
files src/regexp_nfa.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 	    {
--- 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,