Patch 8.1.2026
Problem: Possibly using uninitialized memory.
Solution: Check if "dict" is NULL. (closes #4925)
Files: src/ops.c
*** ../vim-8.1.2025/src/ops.c 2019-08-20 22:58:33.124026286 +0200
--- src/ops.c 2019-09-13 22:15:39.932080344 +0200
***************
*** 7074,7085 ****
}
bom_count = bomb_size();
! if (bom_count > 0)
vim_snprintf((char *)IObuff + STRLEN(IObuff), IOSIZE,
_("(+%lld for BOM)"), (long_long_T)bom_count);
if (dict == NULL)
{
! /* Don't shorten this message, the user asked for it. */
p = p_shm;
p_shm = (char_u *)"";
msg((char *)IObuff);
--- 7074,7085 ----
}
bom_count = bomb_size();
! if (dict == NULL && bom_count > 0)
vim_snprintf((char *)IObuff + STRLEN(IObuff), IOSIZE,
_("(+%lld for BOM)"), (long_long_T)bom_count);
if (dict == NULL)
{
! // Don't shorten this message, the user asked for it.
p = p_shm;
p_shm = (char_u *)"";
msg((char *)IObuff);
*** ../vim-8.1.2025/src/version.c 2019-09-13 22:03:15.270768230 +0200
--- src/version.c 2019-09-13 22:15:59.107991534 +0200
***************
*** 759,760 ****
--- 759,762 ----
{ /* Add new patch number below this line */
+ /**/
+ 2026,
/**/
--
Vi is clearly superior to emacs, since "vi" has only two characters
(and two keystrokes), while "emacs" has five. (Randy C. Ford)
/// 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201909132016.x8DKGjmS024377%40masaka.moolenaar.net.