changeset 4311:8e1d1da398b3 v7.3.905

updated for version 7.3.905 Problem: Crash when writing viminfo. (Ron Aaron) Solution: Prevent freed history info to be used.
author Bram Moolenaar <bram@vim.org>
date Mon, 15 Apr 2013 22:22:57 +0200
parents 4472bc2880ab
children ef341d8811b2
files src/ex_getln.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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 */
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    905,
+/**/
     904,
 /**/
     903,