Bug 857362
Summary: | base64 -d chokes on its own output | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Matej Kollar <mkollar> |
Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-daemons |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.9 | CC: | cperry, kdudka, meyering, satqe-list |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-09-14 09:06:46 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
*** This bug has been marked as a duplicate of bug 719317 *** |
Description of problem: base64 -d fails with "base64: invalid input". after few bytes. Version-Release number of selected component (if applicable): > # rpm -q coreutils > coreutils-5.97-34.el5_8.1 > # base64 --version > base64 (GNU coreutils) 5.97 > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software. You may redistribute copies of it under the terms of > the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. > There is NO WARRANTY, to the extent permitted by law. > > Written by Simon Josefsson. How reproducible: always/deterministic Steps to Reproduce: 1. just run seq 100 | base64 | base64 -d Actual results: -d part dies after printing 22\n Expected results: does not choke Additional info: # seq 100 | base64 produces > MQoyCjMKNAo1CjYKNwo4CjkKMTAKMTEKMTIKMTMKMTQKMTUKMTYKMTcKMTgKMTkKMjAKMjEKMjIK > MjMKMjQKMjUKMjYKMjcKMjgKMjkKMzAKMzEKMzIKMzMKMzQKMzUKMzYKMzcKMzgKMzkKNDAKNDEK > NDIKNDMKNDQKNDUKNDYKNDcKNDgKNDkKNTAKNTEKNTIKNTMKNTQKNTUKNTYKNTcKNTgKNTkKNjAK > NjEKNjIKNjMKNjQKNjUKNjYKNjcKNjgKNjkKNzAKNzEKNzIKNzMKNzQKNzUKNzYKNzcKNzgKNzkK > ODAKODEKODIKODMKODQKODUKODYKODcKODgKODkKOTAKOTEKOTIKOTMKOTQKOTUKOTYKOTcKOTgK > OTkKMTAwCg== which can be perfectly normally decoded on RHEL6 machine with base64 (GNU coreutils) 8.4 :-(