vim-patch:7.4.887

Problem:    Using uninitialized memory for regexp with back reference.
            (Dominique Pelle)
Solution:   Initialize end_lnum.

c2b717ebd6

---

see: "[bug] use of uninitialized memory in regexp_nfa.c with invalid back reference"
     https://groups.google.com/d/msg/vim_dev/JWmrT5-NnPQ/U_TgaRW8AwAJ
This commit is contained in:
watiko 2016-02-15 17:31:53 +09:00
parent baee9fe286
commit ec6fcf3b1c
2 changed files with 2 additions and 1 deletions

View File

@ -4048,6 +4048,7 @@ skip_add:
sub->list.multi[subidx].start_col =
(colnr_T)(reginput - regline + off);
}
sub->list.multi[subidx].end_lnum = -1;
} else {
if (subidx < sub->in_use) {
save_ptr = sub->list.line[subidx].start;

View File

@ -401,7 +401,7 @@ static int included_patches[] = {
// 890 NA
// 889,
// 888,
// 887,
887,
// 886 NA
// 885,
// 884 NA