summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0476
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-12-13 15:11:52 -1000
committerSam Bingner <sam@bingner.com>2018-12-13 15:11:52 -1000
commit957aa75d05c00731d7112bed7b68ce4568667d0c (patch)
tree0445216818495a7864eaa3acde1a1570d34b958d /data/vim/patches/8.1.0476
parentc54a909c8b5a8519130803cf55f68603c0ad3682 (diff)
Update vim
Diffstat (limited to 'data/vim/patches/8.1.0476')
-rw-r--r--data/vim/patches/8.1.047690
1 files changed, 90 insertions, 0 deletions
diff --git a/data/vim/patches/8.1.0476 b/data/vim/patches/8.1.0476
new file mode 100644
index 000000000..8387759a3
--- /dev/null
+++ b/data/vim/patches/8.1.0476
@@ -0,0 +1,90 @@
+To: vim_dev@googlegroups.com
+Subject: Patch 8.1.0476
+Fcc: outbox
+From: Bram Moolenaar <Bram@moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 8.1.0476
+Problem: Memory leaks in test_escaped_glob.
+Solution: Avoid failure when running the shell, use the sandbox.
+Files: src/testdir/test_escaped_glob.vim
+
+
+*** ../vim-8.1.0475/src/testdir/test_escaped_glob.vim 2017-12-07 22:05:10.000000000 +0100
+--- src/testdir/test_escaped_glob.vim 2018-10-14 22:02:01.544686099 +0200
+***************
+*** 2,9 ****
+ " characters.
+
+ function SetUp()
+- " make sure glob() doesn't use the shell
+- set shell=doesnotexist
+ " consistent sorting of file names
+ set nofileignorecase
+ endfunction
+--- 2,7 ----
+***************
+*** 14,32 ****
+ " filenames. Disable the test on non-Unix systems for now.
+ return
+ endif
+! call assert_equal("", glob('Xxx\{'))
+! call assert_equal("", glob('Xxx\$'))
+ w! Xxx{
+ w! Xxx\$
+! call assert_equal("Xxx{", glob('Xxx\{'))
+! call assert_equal("Xxx$", glob('Xxx\$'))
+ call delete('Xxx{')
+ call delete('Xxx$')
+ endfunction
+
+ function Test_globpath()
+! call assert_equal("sautest/autoload/globone.vim\nsautest/autoload/globtwo.vim",
+ \ globpath('sautest/autoload', 'glob*.vim'))
+! call assert_equal(['sautest/autoload/globone.vim', 'sautest/autoload/globtwo.vim'],
+ \ globpath('sautest/autoload', 'glob*.vim', 0, 1))
+ endfunction
+--- 12,33 ----
+ " filenames. Disable the test on non-Unix systems for now.
+ return
+ endif
+!
+! " Execute these commands in the sandbox, so that using the shell fails.
+! " Setting 'shell' to an invalid name causes a memory leak.
+! sandbox call assert_equal("", glob('Xxx\{'))
+! sandbox call assert_equal("", glob('Xxx\$'))
+ w! Xxx{
+ w! Xxx\$
+! sandbox call assert_equal("Xxx{", glob('Xxx\{'))
+! sandbox call assert_equal("Xxx$", glob('Xxx\$'))
+ call delete('Xxx{')
+ call delete('Xxx$')
+ endfunction
+
+ function Test_globpath()
+! sandbox call assert_equal("sautest/autoload/globone.vim\nsautest/autoload/globtwo.vim",
+ \ globpath('sautest/autoload', 'glob*.vim'))
+! sandbox call assert_equal(['sautest/autoload/globone.vim', 'sautest/autoload/globtwo.vim'],
+ \ globpath('sautest/autoload', 'glob*.vim', 0, 1))
+ endfunction
+*** ../vim-8.1.0475/src/version.c 2018-10-14 21:40:57.356848425 +0200
+--- src/version.c 2018-10-14 22:03:06.948104382 +0200
+***************
+*** 794,795 ****
+--- 794,797 ----
+ { /* Add new patch number below this line */
++ /**/
++ 476,
+ /**/
+
+--
+panic("Foooooooood fight!");
+ -- In the kernel source aha1542.c, after detecting a bad segment list
+
+ /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
+/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\ an exciting new programming language -- http://www.Zimbu.org ///
+ \\\ help me help AIDS victims -- http://ICCF-Holland.org ///