Patch 8.2.1687

11 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 14, 2020, 4:39:44 PM9/14/20
to vim...@googlegroups.com

Patch 8.2.1687
Problem: Vim9: out of bounds error.
Solution: Check that cmdidx is not negative.
Files: src/vim9compile.c


*** ../vim-8.2.1686/src/vim9compile.c 2020-09-14 22:23:50.641827118 +0200
--- src/vim9compile.c 2020-09-14 22:37:39.269596581 +0200
***************
*** 6903,6909 ****
if (ea.cmdidx != CMD_SIZE
&& ea.cmdidx != CMD_write && ea.cmdidx != CMD_read)
{
! ea.argt = excmd_get_argt(ea.cmdidx);
if ((ea.argt & EX_BANG) && *p == '!')
{
ea.forceit = TRUE;
--- 6903,6910 ----
if (ea.cmdidx != CMD_SIZE
&& ea.cmdidx != CMD_write && ea.cmdidx != CMD_read)
{
! if (ea.cmdidx >= 0)
! ea.argt = excmd_get_argt(ea.cmdidx);
if ((ea.argt & EX_BANG) && *p == '!')
{
ea.forceit = TRUE;
*** ../vim-8.2.1686/src/version.c 2020-09-14 22:23:50.641827118 +0200
--- src/version.c 2020-09-14 22:38:24.465385605 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1687,
/**/

--
SIGIRO -- irony detected (iron core dumped)

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