diff src/regexp_nfa.c @ 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 94b179585851
children 7245d8635ac7
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
 	    {