Skip to content

Commit

Permalink
patch 8.2.4937: no test for what 8.2.4931 fixes
Browse files Browse the repository at this point in the history
Problem:    No test for what 8.2.4931 fixes.
Solution:   Add a test that triggers a valgrind error.
  • Loading branch information
brammool committed May 10, 2022
1 parent a773d84 commit ead2415
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/testdir/test_perl.vim
Expand Up @@ -308,6 +308,16 @@ func Test_000_SvREFCNT()
%bw!
endfunc

" This caused a memory error before issue #10386 was fixed
func Test_stack_usage_fix()
let script =<< CODE
" This will grow Perl's stack in first invocation
eval [0, 0]->map({ -> perleval("push@_,0..4096;0") })
q!
CODE
call RunVim([], script, '')
endfunc

func Test_set_cursor()
" Check that setting the cursor position works.
new
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4937,
/**/
4936,
/**/
Expand Down

0 comments on commit ead2415

Please sign in to comment.