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
This commit is contained in:
Shougo Matsushita
2014-09-18 20:06:17 +09:00
parent a447160a6c
commit 1a2338bbad
2 changed files with 2 additions and 1 deletions

View File

@@ -1890,6 +1890,7 @@ static void qf_free(qf_info_T *qi, int idx)
} }
free(qi->qf_lists[idx].qf_title); free(qi->qf_lists[idx].qf_title);
qi->qf_lists[idx].qf_title = NULL; qi->qf_lists[idx].qf_title = NULL;
qi->qf_lists[idx].qf_index = 0;
} }
/* /*

View File

@@ -216,7 +216,7 @@ static int included_patches[] = {
//382, //382,
//381, //381,
//380 NA //380 NA
//379, 379,
//378, //378,
//377, //377,
376, 376,