From edward@edcom.com  Wed Apr 19 08:43:33 1995
Received: from edcom.com (edcom.com [140.174.173.185])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id IAA22396
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Apr 1995 08:43:31 -0700
Received: (from edward@localhost) by edcom.com (8.6.11/8.6.9) id IAA00600; Wed, 19 Apr 1995 08:43:25 -0700
Message-Id: <199504191543.IAA00600@edcom.com>
Date: Wed, 19 Apr 1995 08:43:25 -0700
From: Edward Wang <edward@edcom.com>
Reply-To: edward@edcom.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: long mail messages overflow line-count field
X-Send-Pr-Version: 3.2

>Number:         351
>Category:       bin
>Synopsis:       long mail messages overflow line-count field
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 19 08:50:01 1995
>Closed-Date:    Tue May 9 09:56:36 PDT 1995
>Last-Modified:
>Originator:     & Wang
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
>Environment:

	950322-SNAP

>Description:

	The line-count field in mail (m_lines field in struct message,
	/usr/src/usr.bin/mail/defs.h), is a short, which overflows
	not infrequently these days.

>How-To-Repeat:

	jot 32768 | mail `whoami`
	mail
	h
	shows
	>  30 edward                Wed Apr 19 08:40 -32761/185775

>Fix:
	
	I fixed it in 4.4 Lite, though somewhat late, which probably
	explains why it's not in FreeBSD 2.0.
	The fixed source is available on vangogh.CS.Berkeley.EDU.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Tue May 9 09:56:36 PDT 1995 
State-Changed-Why:  
Fixed in v1.2 def.h 
>Unformatted:



