bin/124739: "b64decode -r" fails to decode legal base64 encoded data

Mark Andrews marka at isc.org
Thu Jun 19 00:30:34 UTC 2008


>Number:         124739
>Category:       bin
>Synopsis:       "b64decode -r" fails to decode legal base64 encoded data
>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:   Thu Jun 19 00:30:34 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Mark Andrews
>Release:        FreeBSD 6.3-STABLE i386
>Organization:
ISC
>Environment:
System: FreeBSD drugs.dv.isc.org 6.3-STABLE FreeBSD 6.3-STABLE #19: Fri Apr 25 13:07:00 EST 2008 marka at drugs.dv.isc.org:/usr/obj/usr/src/sys/DRUGS i386


>Description:

	"b64decode -r" doesn't handle arbitary breaks in base64 encoded
	data.  White space should be accepted anywhere in a base64 encoded
	stream, not just after every chunk (4 characters).

>How-To-Repeat:

	Enter the string "VmVsb2NpdHkgUmV3YXJkcw==" with and without
	the "==" on the first line.

	% b64decode -r
	VmVsb2NpdHkgUmV3YXJkcw
	b64decode: stdin: /dev/stdout: error decoding base64 input stream
	% b64decode -r
	VmVsb2NpdHkgUmV3YXJkcw==
	Velocity Rewards
	% 

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list