diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-07-23 16:33:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-07-23 16:33:07 +0200 |
commit | 158a1b074828341767ad4ce912b346bf14189605 (patch) | |
tree | be08e8275cf5711f3f9e11686584c53d95479a6a | |
parent | fb60409a3f25efedcf5611a64a80cb2fb660489f (diff) | |
download | vim-git-158a1b074828341767ad4ce912b346bf14189605.tar.gz |
updated for version 7.4.379v7.4.379
Problem: Accessing freed memory after using setqflist(list, 'r'). (Lcd)
Solution: Reset qf_index.
-rw-r--r-- | src/quickfix.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index fc3a14481..c8954cc53 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -2173,6 +2173,7 @@ qf_free(qi, idx) } vim_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/version.c b/src/version.c index c312e99dd..b92df3276 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 379, +/**/ 378, /**/ 377, |