Patch 8.2.4937

4 views
Skip to first unread message

Bram Moolenaar

unread,
May 10, 2022, 4:11:46 PM5/10/22
to vim...@googlegroups.com

Patch 8.2.4937
Problem: No test for what 8.2.4931 fixes.
Solution: Add a test that triggers a valgrind error.
Files: src/testdir/test_perl.vim


*** ../vim-8.2.4936/src/testdir/test_perl.vim 2021-05-10 22:49:34.772059900 +0100
--- src/testdir/test_perl.vim 2022-05-10 21:05:30.795893667 +0100
***************
*** 308,313 ****
--- 308,323 ----
%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
*** ../vim-8.2.4936/src/version.c 2022-05-10 20:54:42.036080435 +0100
--- src/version.c 2022-05-10 21:09:41.004083746 +0100
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 4937,
/**/

--
hundred-and-one symptoms of being an internet addict:
169. You hire a housekeeper for your home page.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages