]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.905 v7.3.905
authorBram Moolenaar <Bram@vim.org>
Mon, 15 Apr 2013 20:22:57 +0000 (22:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 15 Apr 2013 20:22:57 +0000 (22:22 +0200)
Problem:    Crash when writing viminfo. (Ron Aaron)
Solution:   Prevent freed history info to be used.

src/ex_getln.c
src/version.c

index a7a1409b0ab2fc175de94bca4783af73420159f6..740cca204854daeb5b3cd011b7d784f197e8d058 100644 (file)
@@ -6264,6 +6264,7 @@ write_viminfo_history(fp)
            vim_free(viminfo_history[type][i]);
        vim_free(viminfo_history[type]);
        viminfo_history[type] = NULL;
+       viminfo_hisidx[type] = 0;
     }
 }
 #endif /* FEAT_VIMINFO */
index 0e84a049e291cf763b35a9d25f34430ac6424ade..c745b1c4a335179471fac95f5d41dded91be423a 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    905,
 /**/
     904,
 /**/