diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2014-09-18 20:06:17 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2014-09-18 20:06:17 +0900 |
commit | 1a2338bbad3f3832d739195b8375a491e0560dd3 (patch) | |
tree | 8a83b2e6e45f05085bec9ed874a984471c099410 | |
parent | a447160a6ca43181158bce8117f2af37f4e9fc85 (diff) | |
download | rneovim-1a2338bbad3f3832d739195b8375a491e0560dd3.tar.gz rneovim-1a2338bbad3f3832d739195b8375a491e0560dd3.tar.bz2 rneovim-1a2338bbad3f3832d739195b8375a491e0560dd3.zip |
vim-patch:7.4.379
Problem: Accessing freed memory after using setqflist(list, 'r'). (Lcd)
Solution: Reset qf_index.
https://code.google.com/p/vim/source/detail?r=v7-4-379
-rw-r--r-- | src/nvim/quickfix.c | 1 | ||||
-rw-r--r-- | src/nvim/version.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index ce2a80adaa..3bc70b6b41 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1890,6 +1890,7 @@ static void qf_free(qf_info_T *qi, int idx) } free(qi->qf_lists[idx].qf_title); qi->qf_lists[idx].qf_title = NULL; + qi->qf_lists[idx].qf_index = 0; } /* diff --git a/src/nvim/version.c b/src/nvim/version.c index fa96b27341..b6597215e9 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -216,7 +216,7 @@ static int included_patches[] = { //382, //381, //380 NA - //379, + 379, //378, //377, 376, |