patch 8.2.4440: crash with specific regexp pattern and string
Problem: Crash with specific regexp pattern and string.
Solution: Stop at the start of the string.
diff --git a/src/testdir/test_regexp_utf8.vim b/src/testdir/test_regexp_utf8.vim
index 674eee5..9f5b288 100644
--- a/src/testdir/test_regexp_utf8.vim
+++ b/src/testdir/test_regexp_utf8.vim
@@ -508,7 +508,6 @@
" Check that [[:upper:]] matches for automatic engine
func Test_match_char_class_upper()
new
- let _engine=®expengine
" Test 1: [[:upper:]]\{2,\}
set regexpengine=0
@@ -549,7 +548,7 @@
call assert_equal(4, searchcount().total, 'TEST 3 lower')
" clean up
- let ®expengine=_engine
+ set regexpengine=0
bwipe!
endfunc
@@ -561,4 +560,13 @@
call delete('Xinvalid')
endfunc
+func Test_match_too_complicated()
+ set regexpengine=1
+ exe "vsplit \xeb\xdb\x99"
+ silent! buf \&\zs*\zs*0
+ bwipe!
+ set regexpengine=0
+endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab