Patch 8.2.1162
Problem: Crash when using a lambda.
Solution: Check for evalarg to be NULL.
Files: src/userfunc.c
*** ../vim-8.2.1161/src/userfunc.c 2020-07-08 22:01:43.792114669 +0200
--- src/userfunc.c 2020-07-08 22:19:08.229577734 +0200
***************
*** 508,514 ****
}
eval_lavars_used = old_eval_lavars;
! if (evalarg->eval_tofree == NULL)
evalarg->eval_tofree = tofree;
else
vim_free(tofree);
--- 508,514 ----
}
eval_lavars_used = old_eval_lavars;
! if (evalarg != NULL && evalarg->eval_tofree == NULL)
evalarg->eval_tofree = tofree;
else
vim_free(tofree);
***************
*** 519,525 ****
ga_clear_strings(&newlines);
vim_free(fp);
vim_free(pt);
! if (evalarg->eval_tofree == NULL)
evalarg->eval_tofree = tofree;
else
vim_free(tofree);
--- 519,525 ----
ga_clear_strings(&newlines);
vim_free(fp);
vim_free(pt);
! if (evalarg != NULL && evalarg->eval_tofree == NULL)
evalarg->eval_tofree = tofree;
else
vim_free(tofree);
*** ../vim-8.2.1161/src/version.c 2020-07-08 22:01:43.796114663 +0200
--- src/version.c 2020-07-08 22:23:52.936815987 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1162,
/**/
--
Q: What's a light-year?
A: One-third less calories than a regular year.
/// 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/202007082024.068KOdC41446302%40masaka.moolenaar.net.