forked from aniani/vim
patch 7.4.1665
Problem: Crash when calling job_start() with a NULL string. (Dominique) Solution: Check for an invalid argument.
This commit is contained in:
@@ -3812,6 +3812,11 @@ job_start(typval_T *argvars)
|
||||
{
|
||||
/* Command is a string. */
|
||||
cmd = argvars[0].vval.v_string;
|
||||
if (cmd == NULL || *cmd == NUL)
|
||||
{
|
||||
EMSG(_(e_invarg));
|
||||
return job;
|
||||
}
|
||||
#ifdef USE_ARGV
|
||||
if (mch_parse_cmd(cmd, FALSE, &argv, &argc) == FAIL)
|
||||
return job;
|
||||
|
Reference in New Issue
Block a user