Mercurial > vim
changeset 25891:58b1c9d96ec6 v8.2.3479
patch 8.2.3479: crash when calling job_start with an invalid argument
Commit: https://github.com/vim/vim/commit/7c25a7c0a129300d0632e5b99ccefdca9bf3ffa2
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 5 19:19:35 2021 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 Oct 2021 20:30:04 +0200 |
parents | 7fb29ee9c3be |
children | 868ffaf8fe13 |
files | src/misc2.c src/testdir/test_channel.vim src/version.c |
diffstat | 3 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc2.c +++ b/src/misc2.c @@ -2953,6 +2953,7 @@ build_argv_from_list(list_T *l, char *** for (i = 0; i < *argc; ++i) VIM_CLEAR((*argv)[i]); + (*argv)[0] = NULL; return FAIL; } (*argv)[*argc] = (char *)vim_strsave(s);