Patch 8.1.0016
Problem:    Possible crash in term_wait(). (Dominique Pelle)
Solution:   Check for a valid buffer after ui_delay(). (closes #2944)
Files:      src/terminal.c


*** ../vim-8.1.0015/src/terminal.c      2018-05-21 18:47:47.496590765 +0200
--- src/terminal.c      2018-05-21 22:47:11.788087575 +0200
***************
*** 5264,5274 ****
        {
            mch_check_messages();
            parse_queued_messages();
            if (!buf_valid(buf))
                /* If the terminal is closed when the channel is closed the
                 * buffer disappears. */
                break;
-           ui_delay(10L, FALSE);
        }
        mch_check_messages();
        parse_queued_messages();
--- 5264,5274 ----
        {
            mch_check_messages();
            parse_queued_messages();
+           ui_delay(10L, FALSE);
            if (!buf_valid(buf))
                /* If the terminal is closed when the channel is closed the
                 * buffer disappears. */
                break;
        }
        mch_check_messages();
        parse_queued_messages();
*** ../vim-8.1.0015/src/version.c       2018-05-21 18:47:47.500590743 +0200
--- src/version.c       2018-05-21 22:49:40.782890938 +0200
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     16,
  /**/

-- 
DENNIS: You can't expect to wield supreme executive power just 'cause some
        watery tart threw a sword at you!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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