From b70a473e24e36fd14361ece54da37e3ca7155fdd Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 15 Apr 2013 22:22:57 +0200 Subject: updated for version 7.3.905 Problem: Crash when writing viminfo. (Ron Aaron) Solution: Prevent freed history info to be used. --- src/ex_getln.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ex_getln.c b/src/ex_getln.c index a7a1409b0..740cca204 100644 --- 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 */ diff --git a/src/version.c b/src/version.c index 0e84a049e..c745b1c4a 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 905, /**/ 904, /**/ -- cgit v1.2.1