[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Commented] (CODEC-191) Encoding data using Base64OutputStream omits part of the input in som
From:       "Gary Gregory (JIRA)" <jira () apache ! org>
Date:       2014-10-30 13:03:33
Message-ID: JIRA.12751197.1414522121000.372037.1414674213948 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/CODEC-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190021#comment-14190021 \
] 

Gary Gregory commented on CODEC-191:
------------------------------------

If you do not close any output stream, you are asking for trouble IMO...

> Encoding data using Base64OutputStream omits part of the input in some cases
> ----------------------------------------------------------------------------
> 
> Key: CODEC-191
> URL: https://issues.apache.org/jira/browse/CODEC-191
> Project: Commons Codec
> Issue Type: Bug
> Affects Versions: 1.9
> Environment: Java 7
> Reporter: Igor Savin
> Priority: Minor
> 
> In case Base64OutputStream is used for encoding byte array produced from some \
> strings, an incomplete result (that is inconsistent with both other Base64 \
> implementations and Base64InputStream implementation) is produced. It appears that \
> "s" character is getting omitted if it's in the end of the string to be encoded; \
> there may be other cases as well. Here is the test that allows to reproduce the \
> problem: http://kiberion.net/kibertoad/temp/codec-base64-error.zip



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic