[JBoss JIRA] Created: (NETTY-320) ReplayingDecoderBuffer.toByteBuffer(int, int) throws java.lang.IndexOutOfBoundsException

Willi Schönborn (JIRA) jira-events at lists.jboss.org
Fri May 28 04:38:08 EDT 2010


ReplayingDecoderBuffer.toByteBuffer(int, int) throws java.lang.IndexOutOfBoundsException
----------------------------------------------------------------------------------------

                 Key: NETTY-320
                 URL: https://jira.jboss.org/browse/NETTY-320
             Project: Netty
          Issue Type: Bug
          Components: Buffer, Core API
    Affects Versions: 3.2.0.CR1, 3.2.0.BETA1, 3.2.0.ALPHA4, 3.2.0.ALPHA3, 3.2.0.ALPHA2, 3.2.0.ALPHA1, 3.2.0.Final
         Environment: Sun JDK 1.6.0_20, Debian Lenny
            Reporter: Willi Schönborn
            Assignee: Trustin Lee


Looks like the method misses to call checkIndex(index, length) as any other method in ReplayingDecoderBuffer does.
Possible workaround is buffer.readSlice(length).toByteBuffer(0, length); (beware of readerIndex change).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the netty-dev mailing list