From nobody  Sat Nov 14 00:41:53 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id AAA25210;
          Sat, 14 Nov 1998 00:41:53 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199811140841.AAA25210@hub.freebsd.org>
Date: Sat, 14 Nov 1998 00:41:53 -0800 (PST)
From: tah@d1.dion.ne.jp
To: freebsd-gnats-submit@freebsd.org
Subject: buffer is small at command wall, rwall.
X-Send-Pr-Version: www-1.0

>Number:         8680
>Category:       bin
>Synopsis:       buffer is small at command wall, rwall.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 14 00:50:01 PST 1998
>Closed-Date:    Sat Dec 12 19:42:59 PST 1998
>Last-Modified:  Sat Dec 12 19:43:35 PST 1998
>Originator:     koyama takahiro
>Release:        2.2.6-RELEASE
>Organization:
>Environment:
maybe all version.
>Description:
buffer is small at /usr/src/usr.bin/wall/{,r}wall.c.
function makemsg contain lbuf[100] and tmpname[15].
o  tmpname is used for "/tmp/" "wall.XXXXXX" or "/tmp/" "/wall.XXXXXX".
  (5 + 11 or 12 + NULL byte)
o  only at file wall.c, lbuf is used for string return from
  getlogin(2), getpwuid(3)->pw-name, gethostname(3).
  (message... + UT_NAMESIZE + '@' + MAXHOSTNAMELEN NULL byte)

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dillon 
State-Changed-When: Sat Dec 12 19:42:59 PST 1998 
State-Changed-Why:  
Committed increased buffer sizes to -current and also replaced strcpy/strcat/ 
sprintf functions with snprintf() functions for safety. 
>Unformatted:
