Mercurial > vim
comparison src/testdir/test_eval_stuff.vim @ 20158:94f05de75e9f v8.2.0634
patch 8.2.0634: crash with null partial and blob
Commit: https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 25 15:24:44 2020 +0200
patch 8.2.0634: crash with null partial and blob
Problem: Crash with null partial and blob.
Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan,
closes #5984)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Apr 2020 15:30:04 +0200 |
parents | 49694eceaa55 |
children | 3a94b984c9f9 |
comparison
equal
deleted
inserted
replaced
20157:ada5332a22b7 | 20158:94f05de75e9f |
---|---|
39 " 'p' doesn't suppress real errors | 39 " 'p' doesn't suppress real errors |
40 call writefile([], 'Xfile') | 40 call writefile([], 'Xfile') |
41 call assert_fails('call mkdir("Xfile", "p")', 'E739') | 41 call assert_fails('call mkdir("Xfile", "p")', 'E739') |
42 call delete('Xfile') | 42 call delete('Xfile') |
43 call delete('Xmkdir', 'rf') | 43 call delete('Xmkdir', 'rf') |
44 call assert_equal(0, mkdir(test_null_string())) | |
45 call assert_fails('call mkdir([])', 'E730') | |
46 call assert_fails('call mkdir("abc", [], [])', 'E745') | |
44 endfunc | 47 endfunc |
45 | 48 |
46 func Test_line_continuation() | 49 func Test_line_continuation() |
47 let array = [5, | 50 let array = [5, |
48 "\ ignore this | 51 "\ ignore this |
221 call assert_fails('execute test_null_list()', 'E730:') | 224 call assert_fails('execute test_null_list()', 'E730:') |
222 call assert_fails('execute test_null_dict()', 'E731:') | 225 call assert_fails('execute test_null_dict()', 'E731:') |
223 call assert_fails('execute test_null_blob()', 'E976:') | 226 call assert_fails('execute test_null_blob()', 'E976:') |
224 execute test_null_string() | 227 execute test_null_string() |
225 call assert_fails('execute test_null_partial()', 'E729:') | 228 call assert_fails('execute test_null_partial()', 'E729:') |
229 call assert_fails('execute test_unknown()', 'E908:') | |
226 if has('job') | 230 if has('job') |
227 call assert_fails('execute test_null_job()', 'E908:') | 231 call assert_fails('execute test_null_job()', 'E908:') |
228 call assert_fails('execute test_null_channel()', 'E908:') | 232 call assert_fails('execute test_null_channel()', 'E908:') |
229 endif | 233 endif |
230 endfunc | 234 endfunc |