]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.379 v7.4.379
authorBram Moolenaar <Bram@vim.org>
Wed, 23 Jul 2014 14:33:07 +0000 (16:33 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 23 Jul 2014 14:33:07 +0000 (16:33 +0200)
Problem:    Accessing freed memory after using setqflist(list, 'r'). (Lcd)
Solution:   Reset qf_index.

src/quickfix.c
src/version.c

index fc3a144819a5032d184e913477e578bf60db8ee5..c8954cc5319d6e3a02662fcd1af7723ace6bd8de 100644 (file)
@@ -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;
 }
 
 /*
index c312e99dd1d6f3010a061cfd1c1e5e5908489ef4..b92df32769a03b8314bcfc0dd0f27e2ea1c66a71 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    379,
 /**/
     378,
 /**/