diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-28 12:30:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-28 12:30:12 +0200 |
commit | 271906bc067a8f25422016665001d2e44cf618e2 (patch) | |
tree | 83fee8240a2be83f321c8cee236caa7afbb427fb /src/testdir/test_channel.vim | |
parent | 6024c0427ce1196344439997d5e41a6f8546368c (diff) | |
download | vim-git-271906bc067a8f25422016665001d2e44cf618e2.tar.gz |
patch 8.2.3379: crash when using NULL jobv8.2.3379
Problem: Crash when using NULL job.
Solution: Copy static string into buffer. (issue #8260)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 783a41d2c..fa510c7bb 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1718,6 +1718,10 @@ func Test_job_stop_immediately() endtry endfunc +func Test_null_job_eval() + call assert_fails('eval test_null_job()->eval()', 'E121:') +endfunc + " This was leaking memory. func Test_partial_in_channel_cycle() let d = {} |