# HG changeset patch # User Bram Moolenaar # Date 1611686706 -3600 # Node ID 1f24fcf5945aed7295060b716f74c2dd4df16dfa # Parent 2f521411e1526c6c8449cc7d5508a559798fc1be patch 8.2.2412: not all fields in "cstack" are initialized Commit: https://github.com/vim/vim/commit/ce0370d9e67df80c62ff033aa8ca2dbe86841de9 Author: Bram Moolenaar Date: Tue Jan 26 19:32:53 2021 +0100 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(). diff --git a/src/ex_docmd.c b/src/ex_docmd.c --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -696,11 +696,8 @@ do_cmdline( ++call_depth; #ifdef FEAT_EVAL + CLEAR_FIELD(cstack); 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); real_cookie = getline_cookie(fgetline, cookie); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2412, +/**/ 2411, /**/ 2410,