Patch 8.1.1458
Problem:    Crash when using gtags. (issue #4102)
Solution:   Check for negative row or col in screen_puts_len(). (Christian
            Brabandt)
Files:      src/screen.c


*** ../vim-8.1.1457/src/screen.c        2019-06-02 20:33:27.018782294 +0200
--- src/screen.c        2019-06-03 22:01:02.461393381 +0200
***************
*** 7707,7713 ****
      int               force_redraw_next = FALSE;
      int               need_redraw;
  
!     if (ScreenLines == NULL || row >= screen_Rows)    /* safety check */
        return;
      off = LineOffset[row] + col;
  
--- 7707,7717 ----
      int               force_redraw_next = FALSE;
      int               need_redraw;
  
!     // Safety check. The check for negative row and column is to fix issue
!     // #4102. TODO: find out why row/col could be negative.
!     if (ScreenLines == NULL
!           || row >= screen_Rows || row < 0
!           || col >= screen_Columns || col < 0)
        return;
      off = LineOffset[row] + col;
  
*** ../vim-8.1.1457/src/version.c       2019-06-03 21:14:55.129048884 +0200
--- src/version.c       2019-06-03 22:03:37.712481097 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1458,
  /**/

-- 
You are only young once, but you can stay immature indefinitely.

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
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/201906032004.x53K4j2L011494%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui