From ad76ce6da93fcdd577b52373fa1ef7b039e7c989 Mon Sep 17 00:00:00 2001 From: Gary Jennejohn Date: Sun, 18 Apr 2004 20:28:17 +0000 Subject: Add patch-regex.c to handle an overflow which is caused by long lines produced by compile and make output in xemacs. PR: ports/62437 Submitted by: Palle Girgensohn --- editors/xemacs-devel/files/patch-regex.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 editors/xemacs-devel/files/patch-regex.c (limited to 'editors/xemacs-devel') diff --git a/editors/xemacs-devel/files/patch-regex.c b/editors/xemacs-devel/files/patch-regex.c new file mode 100644 index 000000000000..b546281d5559 --- /dev/null +++ b/editors/xemacs-devel/files/patch-regex.c @@ -0,0 +1,11 @@ +--- src/regex.c.orig Sun Apr 18 22:19:13 2004 ++++ src/regex.c Sun Apr 18 22:18:40 2004 +@@ -1322,7 +1322,7 @@ + exactly that if always used MAX_FAILURE_SPACE each time we failed. + This is a variable only so users of regex can assign to it; we never + change it ourselves. */ +-#if defined (MATCH_MAY_ALLOCATE) ++#if defined (MATCH_MAY_ALLOCATE) || defined (REGEX_MALLOC) + /* 4400 was enough to cause a crash on Alpha OSF/1, + whose default stack limit is 2mb. */ + int re_max_failures = 20000; -- cgit v1.2.3