Patch 8.2.0494
Problem: Vim9: asan error.
Solution: Only get the type when there is one.
Files: src/vim9compile.c
*** ../vim-8.2.0493/src/vim9compile.c 2020-04-01 22:10:56.428201257 +0200
--- src/vim9compile.c 2020-04-01 22:33:04.778968343 +0200
***************
*** 3767,3773 ****
goto theend;
stack = &cctx->ctx_type_stack;
! stacktype = ((type_T **)stack->ga_data)[stack->ga_len - 1];
if (idx >= 0 && (is_decl || !has_type))
{
lvar = ((lvar_T *)cctx->ctx_locals.ga_data) + idx;
--- 3767,3774 ----
goto theend;
stack = &cctx->ctx_type_stack;
! stacktype = stack->ga_len == 0 ? &t_void
! : ((type_T **)stack->ga_data)[stack->ga_len - 1];
if (idx >= 0 && (is_decl || !has_type))
{
lvar = ((lvar_T *)cctx->ctx_locals.ga_data) + idx;
*** ../vim-8.2.0493/src/version.c 2020-04-01 22:10:56.436201223 +0200
--- src/version.c 2020-04-01 22:33:46.082809832 +0200
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 494,
/**/
--
An indication you must be a manager:
You give constructive feedback to your dog.
/// 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/202004012037.031KbFam011786%40masaka.moolenaar.net.