]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0817: crash when building a stacktrace during an autocommand v9.2.0817
authorHirohito Higashi <h.east.727@gmail.com>
Mon, 20 Jul 2026 17:11:43 +0000 (17:11 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 20 Jul 2026 17:11:43 +0000 (17:11 +0000)
commit16f562b4e54ed13e54fac9a7bf27feff6beca345
tree2987e4548af6a63d599e0f2f850369efc5b92e02
parent203210e48b75e8af501c4f40f91671c4a8556f28
patch 9.2.0817: crash when building a stacktrace during an autocommand

Problem:  Vim can crash while building a stack trace when an autocommand
          is being triggered but has not matched a pattern yet, for
          example at the more prompt with 'verbose' set (stefanos82).
Solution: Handle the autocommand entry on the execution stack that does
          not have a script context yet (Hirohito Higashi).

fixes:  #20730
closes: #20732

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/scriptfile.c
src/testdir/test_stacktrace.vim
src/version.c