Patch 7.4.1926
Problem: Possible crash with many history items.
Solution: Avoid the index going past the last item.
Files: src/ex_getln.c
*** ../vim-7.4.1925/src/ex_getln.c 2016-06-11 21:04:34.923761324 +0200
--- src/ex_getln.c 2016-06-12 20:25:25.809844827 +0200
***************
*** 6448,6454 ****
else
clear_hist_entry(&new_hist[i]);
}
! hisidx[type] = len - 1;
/* Free what is not kept. */
for (i = 0; i < viminfo_hisidx[type]; i++)
--- 6448,6454 ----
else
clear_hist_entry(&new_hist[i]);
}
! hisidx[type] = (i < len ? i : len) - 1;
/* Free what is not kept. */
for (i = 0; i < viminfo_hisidx[type]; i++)
*** ../vim-7.4.1925/src/version.c 2016-06-12 21:20:50.945837385 +0200
--- src/version.c 2016-06-12 23:02:44.979891820 +0200
***************
*** 755,756 ****
--- 755,758 ----
{ /* Add new patch number below this line */
+ /**/
+ 1926,
/**/
--
You can't have everything. Where would you put it?
-- Steven Wright
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.