aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-06-08 02:10:38 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-06-08 08:10:38 +0200
commitbe68f218ffef891fe4521d70cf52eceb93ef5d5e (patch)
tree1c0ed765069549dfe716c9651bcf3106248e453a /src/nvim/testdir
parent4871f26c220c5cedbe2f4fbf6cb379da91aef0c3 (diff)
downloadrneovim-be68f218ffef891fe4521d70cf52eceb93ef5d5e.tar.gz
rneovim-be68f218ffef891fe4521d70cf52eceb93ef5d5e.tar.bz2
rneovim-be68f218ffef891fe4521d70cf52eceb93ef5d5e.zip
vim-patch:8.0.0355: using uninitialized memory when 'isfname' is empty (#8493)
Problem: Using uninitialized memory when 'isfname' is empty. Solution: Don't call getpwnam() without an argument. (Dominique Pelle, closes vim/vim#1464) https://github.com/vim/vim/commit/187a4f28140f10ff833862be7e3ef823d317e1c7
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_options.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index eb42e35bd3..5ae8528ee9 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -22,6 +22,13 @@ function! Test_whichwrap()
set whichwrap&
endfunction
+function! Test_isfname()
+ " This used to cause Vim to access uninitialized memory.
+ set isfname=
+ call assert_equal("~X", expand("~X"))
+ set isfname&
+endfunction
+
function! Test_options()
let caught = 'ok'
try