comparison src/regex.c @ 15516:f8e362279cbb

(re_max_failures): Reduce to 4000.
author Richard M. Stallman <rms@gnu.org>
date Wed, 26 Jun 1996 18:00:52 +0000
parents b8fe384dbeee
children 89f7ba4ccd22
comparison
equal deleted inserted replaced
15515:69257ac25af4 15516:f8e362279cbb
1006 /* Roughly the maximum number of failure points on the stack. Would be 1006 /* Roughly the maximum number of failure points on the stack. Would be
1007 exactly that if always used MAX_FAILURE_ITEMS items each time we failed. 1007 exactly that if always used MAX_FAILURE_ITEMS items each time we failed.
1008 This is a variable only so users of regex can assign to it; we never 1008 This is a variable only so users of regex can assign to it; we never
1009 change it ourselves. */ 1009 change it ourselves. */
1010 #if defined (MATCH_MAY_ALLOCATE) 1010 #if defined (MATCH_MAY_ALLOCATE)
1011 /* 8600 was enough to cause a crash on Ultrix, 1011 /* 4400 was enough to cause a crash on Alpha OSF/1,
1012 whose default stack limit is 2mb. */ 1012 whose default stack limit is 2mb. */
1013 int re_max_failures = 8000; 1013 int re_max_failures = 4000;
1014 #else 1014 #else
1015 int re_max_failures = 2000; 1015 int re_max_failures = 2000;
1016 #endif 1016 #endif
1017 1017
1018 union fail_stack_elt 1018 union fail_stack_elt