forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IndexOutOfBoundsException from SslHandler on JDK 8
Motivation: When SslHandler.unwrap() copies SSL records into a heap buffer, it does not update the start offset, causing IndexOutOfBoundsException. Modifications: - Copy to a heap buffer before calling unwrap() for simplicity - Do not copy an empty buffer to a heap buffer. - unwrap(... EMPTY_BUFFER ...) never involves copying now. - Use better parameter names for unwrap() - Clean-up log messages Result: - Bugs fixed - Cleaner code
- Loading branch information
Showing
1 changed file
with
32 additions
and
43 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