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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220828212144.D952A1C07CD%40moolenaar.net.

Raspunde prin e-mail lui