To: vim_dev@googlegroups.com Subject: Patch 8.2.4937 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///