From nobody@FreeBSD.org  Sun Sep  9 17:58:19 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 1250337B401
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Sep 2001 17:58:19 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f8A0wJh57836;
	Sun, 9 Sep 2001 17:58:19 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200109100058.f8A0wJh57836@freefall.freebsd.org>
Date: Sun, 9 Sep 2001 17:58:19 -0700 (PDT)
From: Don Sullivan <dsullivan@gaia.arc.nasa.gov>
To: freebsd-gnats-submit@FreeBSD.org
Subject: PD m4 (/usr/bin/m4) runs out of stack
X-Send-Pr-Version: www-1.0

>Number:         30472
>Category:       i386
>Synopsis:       PD m4 (/usr/bin/m4) runs out of stack
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 09 18:00:00 PDT 2001
>Closed-Date:    Sun Sep 9 19:51:37 PDT 2001
>Last-Modified:  Sun Sep 09 19:56:17 PDT 2001
>Originator:     Don Sullivan
>Release:        4.3
>Organization:
NASA Ames Research Center
>Environment:
FreeBSD lakshmi.arc.nasa.gov 4.3-RELEASE 
FreeBSD 4.3-RELEASE #3: Fri Aug 17 20:54:35 PDT 2001     
sullivan@lakshmi.arc.nasa.gov:/usr/src/sys/compile/LAKSHMI_2
i386
>Description:
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
>How-To-Repeat:
Try building sendmail.
>Fix:
Install gnu m4-1.4;  works swimmingly... 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mp 
State-Changed-When: Sun Sep 9 19:51:37 PDT 2001 
State-Changed-Why:  
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 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30472 
>Unformatted:
