Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in forEachByte on nested composite bytebuf with leak detection (
#12790) Motivation: An NPE could occur when forEachByte was called on nested leak-aware composite byte buffers. Modification: WrappedCompositeByteBuf extends CompositeByteBuf but must delegate all calls to the wrapped instance. Add delegation calls for forEachByteAsc0 and forEachByteDesc0. Without delegation, those calls would, from an outer composite buffer, go to the composite structure of the wrapper buffer, which have no components. Result: No more NPE when calling forEachByte on nested composite leak-aware buffers. Fixes #12787
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters