summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-02 21:33:01 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-02 21:33:01 +0000
commit264d34bf38d6a7f008aa95808319ba2bcd117ebe (patch)
treeb5be2d609d0926a257b904c33bb4b83d5c93c703 /src/regex.c
parentec46c6e81e0b7da4bc8a03ade76c13951efb7174 (diff)
downloademacs-264d34bf38d6a7f008aa95808319ba2bcd117ebe.tar.gz
emacs-264d34bf38d6a7f008aa95808319ba2bcd117ebe.tar.bz2
emacs-264d34bf38d6a7f008aa95808319ba2bcd117ebe.zip
(re_max_failures): Reduce to 8000.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index e4d4e13b425..48ff0e4a492 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1008,7 +1008,9 @@ static const char *re_error_msgid[] =
This is a variable only so users of regex can assign to it; we never
change it ourselves. */
#if defined (MATCH_MAY_ALLOCATE)
-int re_max_failures = 20000;
+/* 8600 was enough to cause a crash on Ultrix,
+ whose default stack limit is 2mb. */
+int re_max_failures = 8000;
#else
int re_max_failures = 2000;
#endif