Skip to content

Commit d45aa55

Browse files
committed
patch 8.1.0016: possible crash in term_wait()
Problem: Possible crash in term_wait(). (Dominique Pelle) Solution: Check for a valid buffer after ui_delay(). (closes #2944)
1 parent 05af9a4 commit d45aa55

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/terminal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5264,11 +5264,11 @@ f_term_wait(typval_T *argvars, typval_T *rettv UNUSED)
52645264
{
52655265
mch_check_messages();
52665266
parse_queued_messages();
5267+
ui_delay(10L, FALSE);
52675268
if (!buf_valid(buf))
52685269
/* If the terminal is closed when the channel is closed the
52695270
* buffer disappears. */
52705271
break;
5271-
ui_delay(10L, FALSE);
52725272
}
52735273
mch_check_messages();
52745274
parse_queued_messages();

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
16,
764766
/**/
765767
15,
766768
/**/

0 commit comments

Comments
 (0)