From 158a1b074828341767ad4ce912b346bf14189605 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 23 Jul 2014 16:33:07 +0200 Subject: [PATCH] updated for version 7.4.379 Problem: Accessing freed memory after using setqflist(list, 'r'). (Lcd) Solution: Reset qf_index. --- src/quickfix.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) 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 @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 379, /**/ 378, /**/