Patch 8.2.2417

5 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 27, 2021, 3:37:52 PM1/27/21
to vim...@googlegroups.com

Patch 8.2.2417
Problem: Condition stack values may be used when not set.
Solution: Clear cs_script_var_len and cs_block_id just in case they get used
later. (issue #7733)
Files: src/ex_eval.c


*** ../vim-8.2.2416/src/ex_eval.c 2021-01-03 19:51:01.396063220 +0100
--- src/ex_eval.c 2021-01-27 21:34:32.623456586 +0100
***************
*** 920,925 ****
--- 920,932 ----
cstack->cs_block_id[cstack->cs_idx] = ++si->sn_last_block_id;
si->sn_current_block_id = si->sn_last_block_id;
}
+ else
+ {
+ // Just in case in_vim9script() does not return the same value when the
+ // block ends.
+ cstack->cs_script_var_len[cstack->cs_idx] = 0;
+ cstack->cs_block_id[cstack->cs_idx] = 0;
+ }
}

static void
*** ../vim-8.2.2416/src/version.c 2021-01-27 20:34:25.291292488 +0100
--- src/version.c 2021-01-27 21:36:17.303239417 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2417,
/**/

--
hundred-and-one symptoms of being an internet addict:
250. You've given up the search for the "perfect woman" and instead,
sit in front of the PC until you're just too tired to care.

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