[
https://issues.apache.org/jira/browse/PROTOCOLS-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Norman Maurer resolved PROTOCOLS-42.
------------------------------------
Resolution: Fixed
> LineHandlerUpstreamHandler does create byte arrays with wrong size when copy
> data
> ---------------------------------------------------------------------------------
>
> Key: PROTOCOLS-42
> URL: https://issues.apache.org/jira/browse/PROTOCOLS-42
> Project: JAMES Protocols
> Issue Type: Bug
> Affects Versions: 1.6-beta1
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Priority: Minor
> Fix For: 1.6-beta2
>
>
> In the LineHandlerUpstreamHandler we create a new byte array which use
> ChannelBuffer.capacity() for the length of it. This is wrong, we should use
> ChannelBuffer.readableBytes(). Beside this we miss to respect the array
> offset if we try to optimize things and don't copy the byte array
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]