You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2011/05/07 14:58:03 UTC

[jira] [Resolved] (SSHD-130) Buffer.getLong() is broken which causes large files corruption during upload

     [ https://issues.apache.org/jira/browse/SSHD-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved SSHD-130.
------------------------------------

    Resolution: Fixed

Patch applied :

http://svn.apache.org/viewvc?rev=1100524&view=rev

thanks !


> Buffer.getLong() is broken which causes large files corruption during upload
> ----------------------------------------------------------------------------
>
>                 Key: SSHD-130
>                 URL: https://issues.apache.org/jira/browse/SSHD-130
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>            Reporter: Taras Puchko
>         Attachments: Fix_Buffer_getLong.patch
>
>
> Files of size more than 4G are uploaded corrupted, due to a bug in Buffer.getLong() implementation.
> JLS 15.19: If the promoted type of the left-hand operand is int, only the five lowest-order bits of the right-hand operand are used as the shift distance.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira