diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-09-29 15:06:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-09-29 15:06:14 +0200 |
commit | c2b717ebd6719e722dcb5f10e4c74033a53ff7c7 (patch) | |
tree | 30ce598b55ee66e3941685da2ec78ce369d5e9b3 | |
parent | 1d478a6242871dcf4566814d3c6208df17991426 (diff) | |
download | vim-git-c2b717ebd6719e722dcb5f10e4c74033a53ff7c7.tar.gz |
patch 7.4.887v7.4.887
Problem: Using uninitialized memory for regexp with back reference.
(Dominique Pelle)
Solution: Initialize end_lnum.
-rw-r--r-- | src/regexp_nfa.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 609da0371..a21c3c03f 100644 --- 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 { diff --git a/src/version.c b/src/version.c index 51602989d..2efbd4616 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 887, +/**/ 886, /**/ 885, |