forked from aniani/vim
patch 8.2.2412: not all fields in "cstack" are initialized
Problem: Not all fields in "cstack" are initialized which might cause a crash. Solution: Use CLEAR_FIELD().
This commit is contained in:
@@ -696,11 +696,8 @@ do_cmdline(
|
|||||||
++call_depth;
|
++call_depth;
|
||||||
|
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
|
CLEAR_FIELD(cstack);
|
||||||
cstack.cs_idx = -1;
|
cstack.cs_idx = -1;
|
||||||
cstack.cs_looplevel = 0;
|
|
||||||
cstack.cs_trylevel = 0;
|
|
||||||
cstack.cs_emsg_silent_list = NULL;
|
|
||||||
cstack.cs_lflags = 0;
|
|
||||||
ga_init2(&lines_ga, (int)sizeof(wcmd_T), 10);
|
ga_init2(&lines_ga, (int)sizeof(wcmd_T), 10);
|
||||||
|
|
||||||
real_cookie = getline_cookie(fgetline, cookie);
|
real_cookie = getline_cookie(fgetline, cookie);
|
||||||
|
@@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
2412,
|
||||||
/**/
|
/**/
|
||||||
2411,
|
2411,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user