Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Leak detection combined with composite buffers results in incorrectly… #8153
… handled writerIndex when calling ByteBufUtil.writeAscii/writeUtf8
We need to add special handling for WrappedCompositeByteBuf as these also extend AbstractByteBuf, otherwise we will not correctly adjust / read the writerIndex during processing.
@normanmaurer Side note: I have some helper utilities I use for testing byte buffers. If I wanted to contribute them for you to use, where would they go?
(They are JUnit Rules that wrap an allocator, making bufs allocated during the test to be auto cleaned up)