[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

user/1868: RFE: increase m4 length limit




>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: