From 7c25a7c0a129300d0632e5b99ccefdca9bf3ffa2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 5 Oct 2021 19:19:35 +0100 Subject: patch 8.2.3479: crash when calling job_start with an invalid argument Problem: Crash when calling job_start with an invalid argument. (Virginia Senioria) Solution: Clear the first item in argv. (closes #8957) --- src/testdir/test_channel.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/testdir') diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index fa510c7bb..fbe6a8428 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -2362,5 +2362,9 @@ func Test_parse_messages_in_autocmd() augroup END endfunc +func Test_job_start_with_invalid_argument() + call assert_fails('call job_start([0zff])', 'E976:') +endfunc + " vim: shiftwidth=2 sts=2 expandtab -- cgit v1.2.1