Skip to content

Commit c2b717e

Browse files
committed
patch 7.4.887
Problem: Using uninitialized memory for regexp with back reference. (Dominique Pelle) Solution: Initialize end_lnum.
1 parent 1d478a6 commit c2b717e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/regexp_nfa.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4523,6 +4523,7 @@ addstate(l, state, subs_arg, pim, off)
45234523
sub->list.multi[subidx].start_col =
45244524
(colnr_T)(reginput - regline + off);
45254525
}
4526+
sub->list.multi[subidx].end_lnum = -1;
45264527
}
45274528
else
45284529
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
887,
744746
/**/
745747
886,
746748
/**/

0 commit comments

Comments
 (0)