comparison src/vim9execute.c @ 23513:872239543313 v8.2.2299

patch 8.2.2299: Vim9: invalid memory access making error message flaky Commit: https://github.com/vim/vim/commit/d1510ee9469f623c872a18b6e3c3666c0fb23c58 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 4 16:15:58 2021 +0100 patch 8.2.2299: Vim9: invalid memory access making error message flaky Problem: Vim9: invalid memory access making error message flaky. Solution: Do not check cmd_argt for CMD_USER. (issue https://github.com/vim/vim/issues/7467)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Jan 2021 16:30:03 +0100
parents 49d866e9b439
children 36bf9a6fbd4c
comparison
equal deleted inserted replaced
23512:bfa661680680 23513:872239543313
3052 3052
3053 if (GA_GROW(&ectx.ec_stack, 1) == FAIL) 3053 if (GA_GROW(&ectx.ec_stack, 1) == FAIL)
3054 goto failed; 3054 goto failed;
3055 ++ectx.ec_stack.ga_len; 3055 ++ectx.ec_stack.ga_len;
3056 tv = STACK_TV_BOT(-1); 3056 tv = STACK_TV_BOT(-1);
3057 ea.addr_count = 0;
3057 ea.addr_type = ADDR_LINES; 3058 ea.addr_type = ADDR_LINES;
3058 ea.cmd = iptr->isn_arg.string; 3059 ea.cmd = iptr->isn_arg.string;
3059 if (parse_cmd_address(&ea, &errormsg, FALSE) == FAIL) 3060 if (parse_cmd_address(&ea, &errormsg, FALSE) == FAIL)
3060 goto failed; 3061 goto failed;
3061 if (ea.addr_count == 0) 3062 if (ea.addr_count == 0)