mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -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:
parent
3bb28557e1
commit
b70a473e24
@ -6264,6 +6264,7 @@ write_viminfo_history(fp)
|
|||||||
vim_free(viminfo_history[type][i]);
|
vim_free(viminfo_history[type][i]);
|
||||||
vim_free(viminfo_history[type]);
|
vim_free(viminfo_history[type]);
|
||||||
viminfo_history[type] = NULL;
|
viminfo_history[type] = NULL;
|
||||||
|
viminfo_hisidx[type] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* FEAT_VIMINFO */
|
#endif /* FEAT_VIMINFO */
|
||||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
905,
|
||||||
/**/
|
/**/
|
||||||
904,
|
904,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user