mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.039
Problem: Crash when using skk.vim plugin. Solution: Get length of expression evaluation result only after checking for NULL. (Noriaki Yagi, Dominique Pelle)
This commit is contained in:
parent
264e9fd61b
commit
fc3c83e47e
@ -688,9 +688,11 @@ getcmdline(firstc, count, indent)
|
|||||||
p = get_expr_line();
|
p = get_expr_line();
|
||||||
--textlock;
|
--textlock;
|
||||||
restore_cmdline(&save_ccline);
|
restore_cmdline(&save_ccline);
|
||||||
len = (int)STRLEN(p);
|
|
||||||
|
|
||||||
if (p != NULL && realloc_cmdbuff(len + 1) == OK)
|
if (p != NULL)
|
||||||
|
{
|
||||||
|
len = (int)STRLEN(p);
|
||||||
|
if (realloc_cmdbuff(len + 1) == OK)
|
||||||
{
|
{
|
||||||
ccline.cmdlen = len;
|
ccline.cmdlen = len;
|
||||||
STRCPY(ccline.cmdbuff, p);
|
STRCPY(ccline.cmdbuff, p);
|
||||||
@ -708,6 +710,7 @@ getcmdline(firstc, count, indent)
|
|||||||
goto cmdline_changed;
|
goto cmdline_changed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
beep_flush();
|
beep_flush();
|
||||||
c = ESC;
|
c = ESC;
|
||||||
}
|
}
|
||||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
39,
|
||||||
/**/
|
/**/
|
||||||
38,
|
38,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user