Skip to content

Conversation

@vietj
Copy link
Member

@vietj vietj commented Oct 15, 2025

Motivation:

Buffer#length() returns an incorrect value when dealing with padded ByteBuf.

Changes:

Buffer#length() should use readableBytes() instead of writerIndex().

Motivation:

Buffer#length() returns an incorrect value when dealing with padded ByteBuf.

Changes:

Buffer#length() should use readableBytes() instead of writerIndex().
@vietj vietj force-pushed the incorrect-buffer-length-4.x branch from d059357 to 371626c Compare October 15, 2025 12:51
@vietj vietj merged commit f2582e9 into 4.x Oct 15, 2025
7 checks passed
@vietj vietj deleted the incorrect-buffer-length-4.x branch October 15, 2025 13:56
@vietj vietj added this to the 4.5.22 milestone Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants