Patch 8.1.2026

10 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 13, 2019, 4:16:53 PM9/13/19
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages