0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.1755: Vim9: crash when using invalid heredoc marker

Problem:    Vim9: crash when using invalid heredoc marker. (Dhiraj Mishra)
Solution:   Check for NULL list. (closes #7027)  Fix comment character.
This commit is contained in:
Bram Moolenaar
2020-09-27 14:22:48 +02:00
parent 8c7ad3631a
commit c0e29010f6
4 changed files with 17 additions and 2 deletions

View File

@@ -4632,6 +4632,8 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
eap->getline = exarg_getline;
eap->cookie = cctx;
l = heredoc_get(eap, op + 3, FALSE);
if (l == NULL)
return NULL;
if (cctx->ctx_skip != SKIP_YES)
{