comparison src/vim9compile.c @ 24295:7f634eae21fe v8.2.2688

patch 8.2.2688: Vim9: crash when using s: for script variable Commit: https://github.com/vim/vim/commit/ca51cc0a335d0c449784440501c7d46ee8f84ce4 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 1 21:38:53 2021 +0200 patch 8.2.2688: Vim9: crash when using s: for script variable Problem: Vim9: crash when using s: for script variable. Solution: Pass the end pointer. (closes https://github.com/vim/vim/issues/8045)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Apr 2021 21:45:02 +0200
parents bbf4b3185554
children cd9f77409393
comparison
equal deleted inserted replaced
24294:e4dddd2b4a50 24295:7f634eae21fe
2820 switch (**arg) 2820 switch (**arg)
2821 { 2821 {
2822 case 'v': res = generate_LOADV(cctx, name, error); 2822 case 'v': res = generate_LOADV(cctx, name, error);
2823 break; 2823 break;
2824 case 's': res = compile_load_scriptvar(cctx, name, 2824 case 's': res = compile_load_scriptvar(cctx, name,
2825 NULL, NULL, error); 2825 NULL, &end, error);
2826 break; 2826 break;
2827 case 'g': if (vim_strchr(name, AUTOLOAD_CHAR) == NULL) 2827 case 'g': if (vim_strchr(name, AUTOLOAD_CHAR) == NULL)
2828 isn_type = ISN_LOADG; 2828 isn_type = ISN_LOADG;
2829 else 2829 else
2830 { 2830 {