neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 094d3dd3d41365061949cefc7eec105867869652
parent 8c31b3eeac4ea5be964dda8c33c7675c657ba5c0
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu, 15 Jan 2026 14:03:04 +0800

vim-patch:9.1.0703: crash with 2byte encoding and glob2regpat()

Problem:  possible crash with 2-byte encoding and glob2regpat()
          (after v9.1.0700, v9.1.0702)
Solution: include both bytes for a multi-byte character for an
          escaped character

closes: vim/vim#15590

https://github.com/vim/vim/commit/c9bfed2fda8c23cc02325b1a7a6d84dc62bbea4b

DBCS 'encoding' is N/A.

Co-authored-by: Christian Brabandt <cb@256bit.org>

Diffstat:
Mtest/old/testdir/test_crash.vim | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/old/testdir/test_crash.vim b/test/old/testdir/test_crash.vim @@ -226,11 +226,11 @@ func Test_crash1_3() call term_sendkeys(buf, args) call TermWait(buf, 150) - " let file = 'crash/heap_overflow_glob2regpat' - " let cmn_args = "%s -u NONE -i NONE -n -X -m -n -e -s -S %s -c ':qa!'" - " let args = printf(cmn_args, vim, file) - " call term_sendkeys(buf, args) - " call TermWait(buf, 50) + let file = 'crash/heap_overflow_glob2regpat' + let cmn_args = "%s -u NONE -i NONE -n -X -m -n -e -s -S %s -c ':qa!'" + let args = printf(cmn_args, vim, file) + call term_sendkeys(buf, args) + call TermWait(buf, 50) let file = 'crash/nullptr_regexp_nfa' let cmn_args = "%s -u NONE -i NONE -n -X -m -n -e -s -S %s -c ':qa!'"