Patch 8.2.2282

6 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 2, 2021, 2:15:05 PM1/2/21
to vim...@googlegroups.com

Patch 8.2.2282
Problem: Length check mismatch with argument of strncmp(). (Christian
Brabandt)
Solution: Adjust length check.
Files: src/ui.c


*** ../vim-8.2.2281/src/ui.c 2021-01-02 16:17:14.548494748 +0100
--- src/ui.c 2021-01-02 20:07:34.549305656 +0100
***************
*** 1012,1024 ****
}
while (len-- > 0)
{
! /*
! * If a CTRL-C was typed, remove it from the buffer and set
! * got_int. Also recognize CTRL-C with modifyOtherKeys set, in two
! * forms.
! */
if (ctrl_c_interrupts && (inbuf[inbufcount] == 3
! || (len >= 9 && STRNCMP(inbuf + inbufcount,
"\033[27;5;99~", 10) == 0)
|| (len >= 7 && STRNCMP(inbuf + inbufcount,
"\033[99;5u", 7) == 0)))
--- 1012,1022 ----
}
while (len-- > 0)
{
! // If a CTRL-C was typed, remove it from the buffer and set
! // got_int. Also recognize CTRL-C with modifyOtherKeys set, in two
! // forms.
if (ctrl_c_interrupts && (inbuf[inbufcount] == 3
! || (len >= 10 && STRNCMP(inbuf + inbufcount,
"\033[27;5;99~", 10) == 0)
|| (len >= 7 && STRNCMP(inbuf + inbufcount,
"\033[99;5u", 7) == 0)))
*** ../vim-8.2.2281/src/version.c 2021-01-02 19:44:50.702794031 +0100
--- src/version.c 2021-01-02 20:09:19.904896659 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2282,
/**/

--
From "know your smileys":
:q vi user saying, "How do I get out of this damn emacs editor?"

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