Patch 9.0.0309
Problem: Invalid memory access when cmdheight is zero.
Solution: Check index in w_lines is smaller than Rows.
Files: src/drawscreen.c
*** ../vim-9.0.0308/src/drawscreen.c 2022-08-26 16:58:46.135489352 +0100
--- src/drawscreen.c 2022-08-28 22:15:53.670820674 +0100
***************
*** 830,835 ****
--- 830,838 ----
// handle the drop now.
handle_any_postponed_drop();
#endif
+
+ // in case it was changed in dont_use_message_window()
+ cmdline_row = Rows - p_ch;
}
/*
***************
*** 2426,2432 ****
if (wp->w_lines_valid > wp->w_height)
wp->w_lines_valid = wp->w_height;
for (i = wp->w_lines_valid; i - j >= idx; --i)
! wp->w_lines[i] = wp->w_lines[i - j];
// The w_lines[] entries for inserted lines are
// now invalid, but wl_size may be used above.
--- 2429,2436 ----
if (wp->w_lines_valid > wp->w_height)
wp->w_lines_valid = wp->w_height;
for (i = wp->w_lines_valid; i - j >= idx; --i)
! if (i < Rows)
! wp->w_lines[i] = wp->w_lines[i - j];
// The w_lines[] entries for inserted lines are
// now invalid, but wl_size may be used above.
*** ../vim-9.0.0308/src/version.c 2022-08-28 22:17:46.298785791 +0100
--- src/version.c 2022-08-28 22:20:02.578739583 +0100
***************
*** 709,710 ****
--- 709,712 ----
{ /* Add new patch number below this line */
+ /**/
+ 309,
/**/
--
An SQL statement walks into a bar. He approaches two tables
and says, "Mind if I join you?"
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///