Mercurial > vim
comparison src/testdir/test_options.vim @ 10932:141fe140976c v8.0.0355
patch 8.0.0355: using uninitialized memory when 'isfname' is empty
commit https://github.com/vim/vim/commit/187a4f28140f10ff833862be7e3ef823d317e1c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 23 17:07:14 2017 +0100
patch 8.0.0355: using uninitialized memory when 'isfname' is empty
Problem: Using uninitialized memory when 'isfname' is empty.
Solution: Don't call getpwnam() without an argument. (Dominique Pelle,
closes #1464)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 23 Feb 2017 17:15:04 +0100 |
parents | 7fc1df5536c9 |
children | a516b6c279d9 |
comparison
equal
deleted
inserted
replaced
10931:1f6cfd495a17 | 10932:141fe140976c |
---|---|
18 | 18 |
19 set whichwrap=h,h,h | 19 set whichwrap=h,h,h |
20 call assert_equal('h', &whichwrap) | 20 call assert_equal('h', &whichwrap) |
21 | 21 |
22 set whichwrap& | 22 set whichwrap& |
23 endfunction | |
24 | |
25 function! Test_isfname() | |
26 " This used to cause Vim to access uninitialized memory. | |
27 set isfname= | |
28 call assert_equal("~X", expand("~X")) | |
29 set isfname& | |
23 endfunction | 30 endfunction |
24 | 31 |
25 function Test_options() | 32 function Test_options() |
26 let caught = 'ok' | 33 let caught = 'ok' |
27 try | 34 try |