Date: Mon, 31 Jan 2005 11:04:34 GMT From: Atushi Sakauchi <sakauchi@micon.co.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/76884: japanese/plain2 causes core dumps with -tex flag Message-ID: <200501311104.j0VB4YDO065149@www.freebsd.org> Resent-Message-ID: <200501311110.j0VBAQ57054757@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76884 >Category: ports >Synopsis: japanese/plain2 causes core dumps with -tex flag >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 31 11:10:25 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Atushi Sakauchi >Release: 4.10-Stable >Organization: >Environment: FreeBSD strider.micon.co.jp 4.10-STABLE FreeBSD 4.10-STABLE #2: Fri Sep 17 17:28:49 JST 2004 root@strider.micon.co.jp:/usr/obj/usr/src/sys/STRIDER i386 >Description: japanese/plain2 is broken. it causes core dumps, using with -tex flag. >How-To-Repeat: % echo | plain2 -tex \newif\ifNTT\NTTfalse \ifx\gtfam\undefined\ifx\gtfamily\undefined\NTTtrue\fi\fi \ifNTT\documentstyle[]{j-article} Segmentation fault (core dumped) % >Fix: --- files/patch-src::macro.c.orig Sun Oct 19 07:35:59 2003 +++ files/patch-src::macro.c Mon Jan 31 19:35:45 2005 @@ -16,7 +16,7 @@ -putMacro(macroNum, va_alist) -int macroNum; -va_dcl -+putMacro(int macroNum, char *fmt, ...) ++putMacro(int macroNum, ...) { va_list ap; union macroArg { @@ -25,7 +25,7 @@ mip = mip->cmac_next; } - va_start(ap); -+ va_start(ap, fmt); ++ va_start(ap, macroNum); for (i = 1; i <= maxarg; i++) { switch(argtype[i]) { case ATYPE_VOID: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501311104.j0VB4YDO065149>