Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IndexOutOfBoundsException for CompositeByteBuf #4679 #4681

Closed
wants to merge 1 commit into from

Conversation

windie
Copy link
Member

@windie windie commented Jan 9, 2016

Motivation:

Modifications:

Use the correct start index

Result:

Fixes #4679

@@ -187,4 +187,17 @@ private static void testDecodeString(String text, Charset charset) {
Assert.assertEquals(text, ByteBufUtil.decodeString(buffer, 0, buffer.readableBytes(), charset));
buffer.release();
}

@Test
public void testIssue4679() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use a more descriptive test name? something like testToStringDoesNotThrowIndexOutOfBounds

@Scottmitch Scottmitch added this to the 4.0.34.Final milestone Jan 9, 2016
@Scottmitch
Copy link
Member

@windie - Thanks for the fix. Just 1 comment.

Motivation:

Modifications:

Use the correct start index

Result:

Fixes netty#4679
@windie
Copy link
Member Author

windie commented Jan 9, 2016

Updated the test name

@Scottmitch
Copy link
Member

Cherry-picked 4.0 (6f86188) 4.1 (6fe0db4)

Thanks @windie !

@Scottmitch Scottmitch closed this Jan 9, 2016
@Scottmitch Scottmitch self-assigned this Jan 9, 2016
@windie windie deleted the issue4679 branch January 9, 2016 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants