Patch 8.2.0566
Problem: Vim9: variable can be used uninitialized.
Solution: Jump to after where variable is used.
Files: src/vim9execute.c
*** ../vim-8.2.0565/src/vim9execute.c 2020-04-12 22:22:27.060446273 +0200
--- src/vim9execute.c 2020-04-12 23:07:25.717543068 +0200
***************
*** 524,530 ****
else
argc -= vararg_count;
if (exe_newlist(vararg_count, &ectx) == FAIL)
! goto failed;
if (defcount > 0)
// Move varargs list to below missing default arguments.
*STACK_TV_BOT(defcount- 1) = *STACK_TV_BOT(-1);
--- 524,530 ----
else
argc -= vararg_count;
if (exe_newlist(vararg_count, &ectx) == FAIL)
! goto failed_early;
if (defcount > 0)
// Move varargs list to below missing default arguments.
*STACK_TV_BOT(defcount- 1) = *STACK_TV_BOT(-1);
***************
*** 1773,1779 ****
// When failed need to unwind the call stack.
while (ectx.ec_frame != initial_frame_ptr)
func_return(&ectx);
!
for (idx = 0; idx < ectx.ec_stack.ga_len; ++idx)
clear_tv(STACK_TV(idx));
vim_free(ectx.ec_stack.ga_data);
--- 1773,1779 ----
// When failed need to unwind the call stack.
while (ectx.ec_frame != initial_frame_ptr)
func_return(&ectx);
! failed_early:
for (idx = 0; idx < ectx.ec_stack.ga_len; ++idx)
clear_tv(STACK_TV(idx));
vim_free(ectx.ec_stack.ga_data);
*** ../vim-8.2.0565/src/version.c 2020-04-12 22:53:50.767656185 +0200
--- src/version.c 2020-04-12 23:08:55.581310682 +0200
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 566,
/**/
--
The problem with political jokes is that they get elected.
/// 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/202004122109.03CL9qPO018107%40masaka.moolenaar.net.