]> granicus.if.org Git - vim/commitdiff
patch 7.4.887 v7.4.887
authorBram Moolenaar <Bram@vim.org>
Tue, 29 Sep 2015 13:06:14 +0000 (15:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 29 Sep 2015 13:06:14 +0000 (15:06 +0200)
Problem:    Using uninitialized memory for regexp with back reference.
            (Dominique Pelle)
Solution:   Initialize end_lnum.

src/regexp_nfa.c
src/version.c

index 609da037152ad4f6d0b0e5b2d01f33c4bd507af8..a21c3c03f89f67a433c76c6a21d0fd23c4d229a4 100644 (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
            {
index 51602989d9b377db7c9fb866f8da27e362cf0462..2efbd46165d4667c66ad725f224c3f235b8a3745 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    887,
 /**/
     886,
 /**/