Repository navigation
Correctly handle the case when BUFFER_OVERFLOW happens during unwrap … - #6113
Closed
normanmaurer wants to merge 1 commit into
Closed
normanmaurer wants to merge 1 commit into
normanmaurer wants to merge 1 commit into
Conversation
…but the readable bytes are bigger then the expected applicationBufferSize Motivation: We need to ensure we handle the case when BUFFER_OVERFLOW happens during unwrap but the readable bytes are bigger then the expected applicationBufferSize. Otherwise we may produce an IllegalArgumentException as we will try to allocate a buffer with capacity < 0. Modifications: - Guard against this case. - Ensure we not double release buffer on exception when doing unwrap. Result: No more exception when running testsuite with java 9.
Contributor
|
@normanmaurer works with JRE8 and fails with JRE9? |
Member
Author
|
Yes... that said I think it is a valid behavior of a SSLEngine implementation
… Am 07.12.2016 um 15:15 schrieb Johno Crawford ***@***.***>:
@normanmaurer works with JRE8 and fails with JRE9?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Contributor
|
Nice catch! |
Member
Author
|
@Scottmitch PTAL .... once this is in we will get successful builds with java9 on our CI servers 👍 |
Scottmitch
approved these changes
Dec 7, 2016
Member
Author
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…but the readable bytes are bigger then the expected applicationBufferSize
Motivation:
We need to ensure we handle the case when BUFFER_OVERFLOW happens during unwrap but the readable bytes are bigger then the expected applicationBufferSize. Otherwise we may produce an IllegalArgumentException as we will try to allocate a buffer with capacity < 0.
Modifications:
Result:
No more exception when running testsuite with java 9.