]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0017: [security]: use-after-free in eval1_emsg() v9.1.0017
authorYegappan Lakshmanan <yegappan@yahoo.com>
Fri, 12 Jan 2024 16:21:55 +0000 (17:21 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 12 Jan 2024 16:27:02 +0000 (17:27 +0100)
commit28d71b566a29ceea3a2d05bcee9264ed5d630d42
tree33c4636d5b8adf94766f6be78042ef463cbd3c31
parent71d0ba07a33a750e9834cd42b7acc619043dedb1
patch 9.1.0017: [security]: use-after-free in eval1_emsg()

Problem:  use-after-free in eval1_emsg() when an empty
          line follows a lambda (by @yu3s)
Solution: only set evalarg->eval_using_cmdline = FALSE when
          the *arg pointer is not null

fixes: #13833
closes: #13841

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/eval.c
src/testdir/test_vim9_script.vim
src/version.c