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 -- [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/202009142039.08EKdbOD1730035%40masaka.moolenaar.net.