Patch 8.2.2412

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 26, 2021, 1:33:40 PM1/26/21
to vim...@googlegroups.com

Patch 8.2.2412
Problem: Not all fields in "cstack" are initialized which might cause a
crash.
Solution: Use CLEAR_FIELD().
Files: src/ex_docmd.c


*** ../vim-8.2.2411/src/ex_docmd.c 2021-01-24 12:53:30.784247042 +0100
--- src/ex_docmd.c 2021-01-26 19:32:25.423493960 +0100
***************
*** 696,706 ****
++call_depth;

#ifdef FEAT_EVAL
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);
--- 696,703 ----
++call_depth;

#ifdef FEAT_EVAL
+ CLEAR_FIELD(cstack);
cstack.cs_idx = -1;
ga_init2(&lines_ga, (int)sizeof(wcmd_T), 10);

real_cookie = getline_cookie(fgetline, cookie);
*** ../vim-8.2.2411/src/version.c 2021-01-26 12:06:27.465801087 +0100
--- src/version.c 2021-01-26 19:32:30.931476108 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2412,
/**/

--
"After a few years of marriage a man can look right at a woman
without seeing her and a woman can see right through a man
without looking at him."
- Helen Rowland

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages