summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_buffer.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-05-11 11:42:28 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-11 11:42:28 +0100
commita59f2dfd0cf9ee1a584d3de5b7c2d47648e79060 (patch)
tree7983fe4811bf949c7a7ca174775428a096a7e20d /src/testdir/test_buffer.vim
parentead241538cdd26cbf02599b6e23cd8baeafbcbb2 (diff)
patch 8.2.4938: crash when matching buffer with invalid patternv8.2.4938
Problem: Crash when matching buffer with invalid pattern. Solution: Check for NULL regprog.
Diffstat (limited to 'src/testdir/test_buffer.vim')
-rw-r--r--src/testdir/test_buffer.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_buffer.vim b/src/testdir/test_buffer.vim
index aea3995587..55ef0fda76 100644
--- a/src/testdir/test_buffer.vim
+++ b/src/testdir/test_buffer.vim
@@ -415,6 +415,10 @@ func Test_buf_pattern_invalid()
vsplit 0000000
silent! buf [0--]\&\zs*\zs*e
bwipe!
+
+ vsplit 00000000000000000000000000
+ silent! buf [0--]\&\zs*\zs*e
+ bwipe!
endfunc
" Test for the 'maxmem' and 'maxmemtot' options