Patch 8.2.2374

5 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 17, 2021, 4:05:31 PM1/17/21
to vim...@googlegroups.com

Patch 8.2.2374
Problem: Accessing uninitialized memory in test_undo.
Solution: Do not look in typebuf.tb_buf if it is empty. (Dominique Pellé,
closes #7697)
Files: src/edit.c


*** ../vim-8.2.2373/src/edit.c 2020-12-03 19:54:38.177924280 +0100
--- src/edit.c 2021-01-17 22:01:55.010117381 +0100
***************
*** 1586,1592 ****
// Recognize:
// form 0: {lead}{key};{modifier}u
// form 1: {lead}27;{modifier};{key}~
! if ((c == CSI || (c == ESC && *p == '[')) && typebuf.tb_len >= 4)
{
idx = (*p == '[');
if (p[idx] == '2' && p[idx + 1] == '7' && p[idx + 2] == ';')
--- 1586,1592 ----
// Recognize:
// form 0: {lead}{key};{modifier}u
// form 1: {lead}27;{modifier};{key}~
! if (typebuf.tb_len >= 4 && (c == CSI || (c == ESC && *p == '[')))
{
idx = (*p == '[');
if (p[idx] == '2' && p[idx + 1] == '7' && p[idx + 2] == ';')
*** ../vim-8.2.2373/src/version.c 2021-01-17 21:51:18.951791136 +0100
--- src/version.c 2021-01-17 22:03:25.849871315 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2374,
/**/

--
hundred-and-one symptoms of being an internet addict:
175. You send yourself e-mail before you go to bed to remind you
what to do when you wake up.

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