[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
user/1868: RFE: increase m4 length limit
- To: gnats@openbsd.org
- Subject: user/1868: RFE: increase m4 length limit
- From: Claus Assmann <ca+OpenBSD@zardoc.endmail.org>
- Date: Sun, 10 Jun 2001 19:13:40 -0700 (PDT)
- Resent-Date: Sun, 10 Jun 2001 20:20:03 -0600 (MDT)
- Resent-From: gnats@cvs.openbsd.org (GNATS Management)
- Resent-Message-Id: <200106110220.f5B2K3w01864@cvs.openbsd.org>
- Resent-Reply-To: gnats@cvs.openbsd.org,Received: "from openbsd.cs.colorado.edu (openbsd.cs.colorado.edu [128.138.192.83]) by cvs.openbsd.org (8.11.4/8.10.1) with ESMTP id f5B2BMv05253 for" <gnats@cvs.openbsd.org>;,Sun@naughty.monkey.org, 10@naughty.monkey.org,Jun@naughty.monkey.org, 2001@naughty.monkey.org,20:11:23.-0600@cvs.openbsd.org (MDT)
- Resent-To: bugs@cvs.openbsd.org
>Number: 1868
>Category: user
>Synopsis: increase m4 length limit
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Jun 10 20:20:01 MDT 2001
>Last-Modified:
>Originator: Claus Assmann
>Organization:
Sendmail.org
>Release: OpenBSD 2.8
>Environment:
System : OpenBSD 2.8
Architecture: OpenBSD.i386
Machine : i386
>Description:
increase m4 length limit
>How-To-Repeat:
Run this:
m4 <<EOF
define(\`LongList', \` assert.c debug.c exc.c heap.c match.c rpool.c strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c fwrite.c get.c makebuf.c put.c refill.c rewind.c rget.c setvbuf.c smstdio.c snprintf.c sscanf.c stdio.c strio.c syslogio.c ungetc.c vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c vsprintf.c vsscanf.c wbuf.c wsetup.c stringf.c xtrap.c strto.c test.c path.c strcasecmp.c signal.c clock.c config.c shm.c ')
define(\`SameList', \`substr(LongList, 0, index(LongList, \`.'))\`'substr(LongList, index(LongList, \`.'))')
ifelse(len(LongList), len(SameList), \`',
\`errprint(\`This version of m4 is broken: length problem')
')
EOF
Please increase the limit from 512 to 1024; sendmail 8.12 needs this.
Index: mdef.h
===================================================================
RCS file: /cvs/src/usr.bin/m4/mdef.h,v
retrieving revision 1.17
diff -u -r1.17 mdef.h
--- mdef.h 2000/07/24 23:08:25 1.17
+++ mdef.h 2001/06/11 02:01:51
@@ -111,7 +111,7 @@
#define EOS '\0'
#define MAXINP 10 /* maximum include files */
#define MAXOUT 10 /* maximum # of diversions */
-#define MAXSTR 512 /* maximum size of string */
+#define MAXSTR 1024 /* maximum size of string */
#define BUFSIZE 4096 /* starting size of pushback buffer */
#define INITSTACKMAX 4096 /* starting size of call stack */
#define STRSPMAX 4096 /* starting size of string space */
>Fix:
>Audit-Trail:
>Unformatted: