commit | 5a234eb18e6e43408755bb24e813330306c11629 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jul 24 13:18:48 2021 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jul 24 13:18:48 2021 +0200 |
tree | 1dfb2d472fa5cbad6c16d9eace2b8eeaa5107870 | |
parent | 0ad871dc4dfe1026e14931a55c225616b63f4c5b [diff] [blame] |
patch 8.2.3207: Vim9: crash when compiling string fails Problem: Vim9: crash when compiling string fails. (Yegappan Lakshmanan) Solution: Adjust the type stack length.
diff --git a/src/vim9compile.c b/src/vim9compile.c index fada134..06098d8 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -3263,6 +3263,7 @@ semsg(_(e_trailing_arg), s); clear_instr_ga(&cctx->ctx_instr); cctx->ctx_instr = save_ga; + ++cctx->ctx_type_stack.ga_len; return FAIL; }