[
https://issues.apache.org/jira/browse/DIRMINA-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618305#action_12618305
]
Trustin Lee commented on DIRMINA-613:
-------------------------------------
The fix for this issue is very straightforward. We need to avoid calling
IoBuffer.compact() when a slice() has been called.
> Calling IoBuffer.slice() in CumulativeProtocolDecoder.doDecode() can cause
> data corruption.
> --------------------------------------------------------------------------------------------
>
> Key: DIRMINA-613
> URL: https://issues.apache.org/jira/browse/DIRMINA-613
> Project: MINA
> Issue Type: Bug
> Components: Filter
> Affects Versions: 2.0.0-M1, 2.0.0-M2
> Reporter: Trustin Lee
> Assignee: Trustin Lee
> Fix For: 2.0.0-M3
>
> Attachments: MinaCPProblemTest.java
>
>
> According to the attached test case, it seems like it is easy to cause data
> corruption if a user calls IoBuffer.slice() inside
> CumulativeProtocolDecoder.doDecode() implementation.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.