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:
parent
1357caf31f
commit
14ad611ca4
@ -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();
|
||||
|
@ -742,6 +742,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1233,
|
||||
/**/
|
||||
1232,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user