0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 7.4.887

Problem:    Using uninitialized memory for regexp with back reference.
            (Dominique Pelle)
Solution:   Initialize end_lnum.
This commit is contained in:
Bram Moolenaar 2015-09-29 15:06:14 +02:00
parent 1d478a6242
commit c2b717ebd6
2 changed files with 3 additions and 0 deletions

View File

@ -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
{

View File

@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
887,
/**/
886,
/**/