Patch 8.2.3340

4 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 13, 2021, 2:12:54 PM8/13/21
to vim...@googlegroups.com

Patch 8.2.3340 (after 8.2.3339)
Problem: Accessing uninitialized pointer.
Solution: Set pointer to NULL.
Files: src/eval.c


*** ../vim-8.2.3339/src/eval.c 2021-08-13 19:40:47.413028293 +0200
--- src/eval.c 2021-08-13 20:10:03.132419906 +0200
***************
*** 906,911 ****
--- 906,912 ----
{
// using local variable
lp->ll_tv = lval_root;
+ v = NULL;
}
else
{
***************
*** 967,972 ****
--- 968,974 ----
}

if (in_vim9script() && lp->ll_valtype == NULL
+ && v != NULL
&& lp->ll_tv == &v->di_tv
&& ht != NULL && ht == get_script_local_ht())
{
*** ../vim-8.2.3339/src/version.c 2021-08-13 19:40:47.417028286 +0200
--- src/version.c 2021-08-13 20:11:55.152151309 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3340,
/**/

--
Save the plankton - eat a whale.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages