0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 7.4.1233

Problem:    Channel command may cause a crash.
Solution:   Check for NULL argument. (Damien)
This commit is contained in:
Bram Moolenaar 2016-02-01 21:47:13 +01:00
parent 1357caf31f
commit 14ad611ca4
2 changed files with 5 additions and 1 deletions

View File

@ -629,6 +629,8 @@ channel_exe_cmd(int idx, char_u *cmd, typval_T *arg2, typval_T *arg3)
return;
}
arg = arg2->vval.v_string;
if (arg == NULL)
arg = (char_u *)"";
if (STRCMP(cmd, "ex") == 0)
{
@ -647,7 +649,7 @@ channel_exe_cmd(int idx, char_u *cmd, typval_T *arg2, typval_T *arg3)
{
exarg_T ea;
ea.forceit = arg != NULL && *arg != NUL;
ea.forceit = *arg != NUL;
ex_redraw(&ea);
showruler(FALSE);
setcursor();

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1233,
/**/
1232,
/**/