1
0
forked from aniani/vim

patch 8.1.0526: running out of signal stack in RealWaitForChar

Problem:    Running out of signal stack in RealWaitForChar. (Vladimir Marek)
Solution:   Make the fd_set variables static.
This commit is contained in:
Bram Moolenaar 2018-11-12 21:45:08 +01:00
parent d3471e5785
commit 61fb8d8c67
2 changed files with 5 additions and 1 deletions

View File

@ -6194,7 +6194,9 @@ RealWaitForChar(int fd, long msec, int *check_for_gpm UNUSED, int *interrupted)
struct timeval tv;
struct timeval *tvp;
fd_set rfds, wfds, efds;
// These are static because they can take 8 Kbyte each and cause the
// signal stack to run out with -O3.
static fd_set rfds, wfds, efds;
int maxfd;
long towait = msec;

View File

@ -792,6 +792,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
526,
/**/
525,
/**/