summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0016
blob: 0ecad20a925e83bac203edbf73cc825093ad0da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0016
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

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 -- Bram@Moolenaar.net -- 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    ///