Bug 30472

Summary: PD m4 (/usr/bin/m4) runs out of stack
Product: Base System Reporter: Don Sullivan <dsullivan>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Don Sullivan 2001-09-10 02:00:00 UTC
Building Sendmail-8.12.0, M4 check barfs:
Configuration: pfx=, os=FreeBSD, rel=4.3-RELEASE, rbase=4, 
rroot=4.3-RELEASE, arch=i386, sfx=, variant=optimized
ERROR: Using M4=/usr/bin/m4: This version of m4 is broken:length problem

Fix: 

Install gnu m4-1.4;  works swimmingly...
How-To-Repeat: Try building sendmail.
Comment 1 Mark Peek freebsd_committer freebsd_triage 2001-09-10 03:51:37 UTC
State Changed
From-To: open->closed

As Gregory Neil Shapiro <gshapiro@gshapiro.net> reminded me, this was fixed 
(after 4.3 was released) with this change: 

revision 1.10.2.2 
date: 2001/05/24 20:52:13;  author: gshapiro;  state: Exp;  lines: +9 -9 
MFC: String operations could silently truncate long strings, leaving the output 
corrupted.  Mark's patch fixes this be removing the MAXTOK limitation on 
substring operations and allowing the putback buffer size to be the 
limiting factor.  If the putback buffer size if reached, m4 gives an 
error instead of silently truncating the string. 

Revision  Changes    Path 
1.12      +9 -9      src/usr.bin/m4/eval.c