comparison src/vim9compile.c @ 25340:37001467805f v8.2.3207

patch 8.2.3207: Vim9: crash when compiling string fails Commit: https://github.com/vim/vim/commit/5a234eb18e6e43408755bb24e813330306c11629 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 24 13:18:48 2021 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jul 2021 13:30:04 +0200
parents 92e7a55ab0ff
children d1fcd9c14a93
comparison
equal deleted inserted replaced
25339:5f0765ae6ad9 25340:37001467805f
3261 { 3261 {
3262 if (trailing_error) 3262 if (trailing_error)
3263 semsg(_(e_trailing_arg), s); 3263 semsg(_(e_trailing_arg), s);
3264 clear_instr_ga(&cctx->ctx_instr); 3264 clear_instr_ga(&cctx->ctx_instr);
3265 cctx->ctx_instr = save_ga; 3265 cctx->ctx_instr = save_ga;
3266 ++cctx->ctx_type_stack.ga_len;
3266 return FAIL; 3267 return FAIL;
3267 } 3268 }
3268 3269
3269 // Move the generated instructions into the ISN_INSTR instruction, then 3270 // Move the generated instructions into the ISN_INSTR instruction, then
3270 // restore the list of instructions. 3271 // restore the list of instructions.