Patch 8.0.0859
Problem:    NULL pointer access when term_free_vterm called twice.
Solution:   Return when tl_vterm is NULL. (Yasuhiro Matsumoto, closes #1934)
Files:      src/terminal.c


*** ../vim-8.0.0858/src/terminal.c      2017-08-03 22:44:51.034797750 +0200
--- src/terminal.c      2017-08-04 20:27:58.405600925 +0200
***************
*** 691,698 ****
      VTermPos      pos;
      VTermScreenCell cell;
      VTermScreenCell *p;
!     VTermScreen           *screen = vterm_obtain_screen(term->tl_vterm);
  
      for (pos.row = 0; pos.row < term->tl_rows; ++pos.row)
      {
        len = 0;
--- 691,701 ----
      VTermPos      pos;
      VTermScreenCell cell;
      VTermScreenCell *p;
!     VTermScreen           *screen;
  
+     if (term->tl_vterm == NULL)
+       return;
+     screen = vterm_obtain_screen(term->tl_vterm);
      for (pos.row = 0; pos.row < term->tl_rows; ++pos.row)
      {
        len = 0;
*** ../vim-8.0.0858/src/version.c       2017-08-03 22:44:51.046797665 +0200
--- src/version.c       2017-08-04 20:29:11.608802042 +0200
***************
*** 771,772 ****
--- 771,774 ----
  {   /* Add new patch number below this line */
+ /**/
+     859,
  /**/

-- 
The early bird gets the worm. The second mouse gets the cheese.

 /// 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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui