diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-13 17:44:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-13 17:44:47 +0200 |
commit | 0015795baafaf7983875f979f92339375fe5d8e2 (patch) | |
tree | 741d1ca9bc1f43baa28aad97e122cdbde866d10e /src/testdir/test_channel.vim | |
parent | 6e949784be29bfaea6e49a9d8231481eae10fab6 (diff) |
patch 8.2.0571: double free when passing invalid argument to job_start()v8.2.0571
Problem: Double free when passing invalid argument to job_start().
Solution: Clear the argument when freed. (Masato Nishihata, closes #5926)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 11f33628d8..af809eceb4 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1681,6 +1681,7 @@ func Test_job_start_fails() call assert_fails('let job = job_start([" "])', 'E474:') call assert_fails('let job = job_start("")', 'E474:') call assert_fails('let job = job_start(" ")', 'E474:') + call assert_fails('let job = job_start(["ls", []])', 'E730:') %bw! endfunc |