diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-10 21:11:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-10 21:11:12 +0100 |
commit | ead241538cdd26cbf02599b6e23cd8baeafbcbb2 (patch) | |
tree | 827f7d42c47beaf4bb95a931d1834b89d5ded3af | |
parent | a773d84570e224035389f6697ac5634d7f27cccc (diff) | |
download | vim-git-ead241538cdd26cbf02599b6e23cd8baeafbcbb2.tar.gz |
patch 8.2.4937: no test for what 8.2.4931 fixesv8.2.4937
Problem: No test for what 8.2.4931 fixes.
Solution: Add a test that triggers a valgrind error.
-rw-r--r-- | src/testdir/test_perl.vim | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_perl.vim b/src/testdir/test_perl.vim index c35f49c8f..cf4ca7573 100644 --- a/src/testdir/test_perl.vim +++ b/src/testdir/test_perl.vim @@ -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 diff --git a/src/version.c b/src/version.c index 7c49116a5..8cc9cebac 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4937, +/**/ 4936, /**/ 4935, |