From nobody@FreeBSD.org  Sun Mar 16 13:54:28 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 24B3273C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Mar 2014 13:54:28 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id ECA5AB07
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Mar 2014 13:54:27 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2GDsRA4098368
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 16 Mar 2014 13:54:27 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2GDsRal098367;
	Sun, 16 Mar 2014 13:54:27 GMT
	(envelope-from nobody)
Message-Id: <201403161354.s2GDsRal098367@cgiserv.freebsd.org>
Date: Sun, 16 Mar 2014 13:54:27 GMT
From: Makoto Kishimoto <ksmakoto@dd.iij4u.or.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: m4 segv
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         187633
>Category:       bin
>Synopsis:       [patch] fix m4(1) segv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 16 14:00:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun Mar 23 15:49:58 UTC 2014
>Originator:     Makoto Kishimoto
>Release:        9.2-STABLE
>Organization:
N/A
>Environment:
FreeBSD norikura.localdomain 9.2-STABLE FreeBSD 9.2-STABLE #1 r257235: Mon Oct 28 19:56:00 JST 2013     ksmakoto@norikura.localdomain:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
m4 segv, when processes "ifelse(a,b,c,d,d)".
>How-To-Repeat:
$ echo 'ifelse(a,b,c,d,d)' | m4
Segmentation fault: 11 (core dumped)
>Fix:


>Release-Note:
>Audit-Trail:

From: Ulf Lilleengen <lulf@FreeBSD.org>
To: Makoto Kishimoto <ksmakoto@dd.iij4u.or.jp>, 
 freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/187633: m4 segv
Date: Sat, 22 Mar 2014 18:27:55 +0100

 Hi,
 
 This patch will ensure that m4 does not try to evaluate a set of 
 arguments that does not adhere to the instructions in the man page:
 
 http://people.freebsd.org/~lulf/patches/0001-Ensure-that-we-have-enough-arguments-for-ifelse-befo.patch
 
 Ulf
>Unformatted:
