Mercurial > vim
view runtime/compiler/context.vim @ 34105:c4ad4778946c v9.1.0017
patch 9.1.0017: [security]: use-after-free in eval1_emsg()
Commit: https://github.com/vim/vim/commit/28d71b566a29ceea3a2d05bcee9264ed5d630d42
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Fri Jan 12 17:21:55 2024 +0100
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 12 Jan 2024 17:30:06 +0100 |
parents | d81556766132 |
children | 2c3f939d46bf |
line wrap: on
line source
vim9script # Language: ConTeXt typesetting engine # Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com> # Former Maintainers: Nikolai Weibull <now@bitwi.se> # Latest Revision: 2023 Dec 26 if exists("g:current_compiler") finish endif import autoload '../autoload/context.vim' if exists(":CompilerSet") != 2 # Older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif g:current_compiler = 'context' if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) || (!filereadable('Makefile') && !filereadable('makefile')) &l:makeprg = join(context.ConTeXtCmd(shellescape(expand('%:p:t'))), ' ') else g:current_compiler = 'make' endif const context_errorformat = join([ "%-Popen source%.%#> %f", "%-Qclose source%.%#> %f", "%-Popen source%.%#name '%f'", "%-Qclose source%.%#name '%f'", "tex %trror%.%#error on line %l in file %f: %m", "%Elua %trror%.%#error on line %l in file %f:", "%+Emetapost %#> error: %#", "%Emetafun%.%#error: %m", "! error: %#%m", "%-C %#", "%C! %m", "%Z[ctxlua]%m", "%+C<*> %.%#", "%-C%.%#", "%Z...%m", "%-Zno-error", "%-G%.%#"], ",") execute 'CompilerSet errorformat=' .. escape(context_errorformat, ' ') # vim: sw=2 fdm=marker