You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Yi Liu (JIRA)" <ji...@apache.org> on 2014/09/01 04:27:21 UTC
[jira] [Updated] (HADOOP-11040) Return value of read(ByteBuffer
buf) in CryptoInputStream is incorrect in some cases
[ https://issues.apache.org/jira/browse/HADOOP-11040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yi Liu updated HADOOP-11040:
----------------------------
Status: Patch Available (was: Open)
> Return value of read(ByteBuffer buf) in CryptoInputStream is incorrect in some cases
> ------------------------------------------------------------------------------------
>
> Key: HADOOP-11040
> URL: https://issues.apache.org/jira/browse/HADOOP-11040
> Project: Hadoop Common
> Issue Type: Bug
> Components: security
> Affects Versions: 2.6.0
> Reporter: Yi Liu
> Assignee: Yi Liu
> Attachments: HADOOP-11040.001.patch
>
>
> In {{CryptoInputStream}}, for {{int read(ByteBuffer buf))}}, if there is unread value in outBuffer, then the current return value is incorrect. This case happens when caller uses bytes array read firstly and then do the ByteBuffer read.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)