Skip to content

Commit 3d1a678

Browse files
mostroverkhovOlegDokuka
authored andcommitted
Tuple3ByteBuf: fix IndexOutOfBoundsException
1 parent d55750c commit 3d1a678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rsocket-core/src/main/java/io/rsocket/buffer/Tuple3ByteBuf.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public ByteBuffer[] _nioBuffers(int index, int length) {
164164
ByteBuffer[] twoBuffer;
165165
ByteBuffer[] threeBuffer;
166166
int l = Math.min(twoReadableBytes - index, length);
167-
twoBuffer = two.nioBuffers(index, length);
167+
twoBuffer = two.nioBuffers(index, l);
168168
length -= l;
169169
if (length != 0) {
170170
threeBuffer = three.nioBuffers(threeReadIndex, length);

0 commit comments

Comments
 (0)