From falcon@abovenet.chime.com  Tue Oct  9 01:03:07 2001
Return-Path: <falcon@abovenet.chime.com>
Received: from abovenet.chime.com (abovenet.chime.com [216.200.125.135])
	by hub.freebsd.org (Postfix) with ESMTP id 53DCE37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  9 Oct 2001 01:03:07 -0700 (PDT)
Received: (from falcon@localhost)
	by abovenet.chime.com (8.11.6/8.11.6) id f99837F39888;
	Tue, 9 Oct 2001 01:03:07 -0700 (PDT)
	(envelope-from falcon)
Message-Id: <200110090803.f99837F39888@abovenet.chime.com>
Date: Tue, 9 Oct 2001 01:03:07 -0700 (PDT)
From: "jon r. luini" <falcon@chime.com>
Reply-To: "jon r. luini" <falcon@chime.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: uuencode should pad with nulls instead of random garbage
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31156
>Category:       bin
>Synopsis:       uuencode should pad with nulls instead of random garbage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 09 01:10:01 PDT 2001
>Closed-Date:    Tue Oct 9 04:05:49 PDT 2001
>Last-Modified:  Tue Oct 09 04:06:37 PDT 2001
>Originator:     jon r. luini
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
chime interactive
>Environment:
System: FreeBSD abovenet.chime.com 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Fri Sep 21 01:25:55 PDT 2001 falcon@newbie.chime.com:/usr/obj/usr/src/sys/CHIME i386


>Description:
	when uuencode's input is not a multiple of 4, garbage is used to
	pad it out, according to the doc. it's much more useful to pad
	with nulls since it provides consistent output when compared against
	another implementation.
>How-To-Repeat:
	write your own version of uuencode which doesn't use un-initialized
	data and compare the output of both on an input data which isn't a
	multiple of 4 bytes in length.
>Fix:
	clear the buffer before reading into it each iteration of the loop,
	or if you prefer, manually assign nulls only when necessary.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Tue Oct 9 04:05:49 PDT 2001 
State-Changed-Why:  
Fixed in uuencode/uuencode.c,v 1.7 and uuencode/uuencode.format.5,v 1.12. 


Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Tue Oct 9 04:05:49 PDT 2001 
Responsible-Changed-Why:  

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