0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

updated for version 7.3.905

Problem:    Crash when writing viminfo. (Ron Aaron)
Solution:   Prevent freed history info to be used.
This commit is contained in:
Bram Moolenaar 2013-04-15 22:22:57 +02:00
parent 3bb28557e1
commit b70a473e24
2 changed files with 3 additions and 0 deletions

View 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 */

View File

@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
905,
/**/
904,
/**/