diff options
author | gj <gj@FreeBSD.org> | 2004-04-19 04:28:17 +0800 |
---|---|---|
committer | gj <gj@FreeBSD.org> | 2004-04-19 04:28:17 +0800 |
commit | 9d48c16a2801e6bd890cb3d4b1dce9648826d5ef (patch) | |
tree | eb942beafa2575434ab2e30846eb047dad7df957 | |
parent | d9bd801f344efe9e55c04c4a65778bfe65c2ba9a (diff) | |
download | freebsd-ports-gnome-9d48c16a2801e6bd890cb3d4b1dce9648826d5ef.tar.gz freebsd-ports-gnome-9d48c16a2801e6bd890cb3d4b1dce9648826d5ef.tar.zst freebsd-ports-gnome-9d48c16a2801e6bd890cb3d4b1dce9648826d5ef.zip |
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 <girgen@pingpong.net>
-rw-r--r-- | editors/xemacs-devel/files/patch-regex.c | 11 | ||||
-rw-r--r-- | editors/xemacs/files/patch-regex.c | 11 |
2 files changed, 22 insertions, 0 deletions
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; diff --git a/editors/xemacs/files/patch-regex.c b/editors/xemacs/files/patch-regex.c new file mode 100644 index 000000000000..33c75b5894a0 --- /dev/null +++ b/editors/xemacs/files/patch-regex.c @@ -0,0 +1,11 @@ +--- src/regex.c.orig Sun Apr 18 22:13:51 2004 ++++ src/regex.c Sun Apr 18 22:14:57 2004 +@@ -1135,7 +1135,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; |