To: vim_dev@googlegroups.com Subject: Patch 8.2.1687 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///