summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-11-12 21:45:08 +0100
committerBram Moolenaar <Bram@vim.org>2018-11-12 21:45:08 +0100
commit61fb8d8c6719205c686550e591db22aa97b4db4c (patch)
treeecdcb54198c3260776ee2b2270efc68f25008a8d
parentd3471e578506d5554ab99c4cd08af2a021c4f461 (diff)
patch 8.1.0526: running out of signal stack in RealWaitForCharv8.1.0526
Problem: Running out of signal stack in RealWaitForChar. (Vladimir Marek) Solution: Make the fd_set variables static.
-rw-r--r--src/os_unix.c4
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 94e1a53573..4d902d9395 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index 252d047c68..d3a427ae19 100644
--- a/src/version.c
+++ b/src/version.c
@@ -793,6 +793,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 526,
+/**/
525,
/**/
524,