A patch for regex.c
H . J . Lu
hjl@valinux.com
Thu Jul 13 13:42:00 GMT 2000
posix/runptests failed on my 4GB RAM machine when run through make.
It ran ok by hand. This patch fixes it. The comments indicate
4000 is a better choice.
--
H.J. Lu (hjl@gnu.org)
--
2000-07-13 H.J. Lu <hjl@gnu.org>
* posix/regex.c (re_max_failures): Set to 4000.
Index: posix/regex.c
===================================================================
RCS file: /work/cvs/gnu/glibc/posix/regex.c,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 regex.c
--- posix/regex.c 2000/07/12 18:50:17 1.1.1.2
+++ posix/regex.c 2000/07/13 20:35:54
@@ -1234,7 +1234,7 @@ typedef struct
# if defined MATCH_MAY_ALLOCATE
/* 4400 was enough to cause a crash on Alpha OSF/1,
whose default stack limit is 2mb. */
-int re_max_failures = 20000;
+int re_max_failures = 4000;
# else
int re_max_failures = 2000;
# endif
More information about the Libc-hacker
mailing list