-
Notifications
You must be signed in to change notification settings - Fork 171
8302017: Allocate BadPaddingException only if it will be thrown #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Welcome back abakhtin! A progress list of the required criteria for merging this PR into |
|
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for proposing this backport.
Two minor comments:
-
The copyright date change in RSAPadding.java is not necessary (I made this comment for 17u and 11u too).
-
Would you mind adding the comment "// https://www.rfc-editor.org..." (and the line before) inside the try block as in 17u and 11u?
Thanks,
Martin.-
Thank you @martinuy ! |
|
Pre-submit test failures are not related to the current changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for proposing this backport.
I meant adding the "// https://www.rfc..." comment only to the try block, not the previous "if". In 8u we don't have 8149802 that adds a try-finally block to call resetDigest, so there isn't a reason for it. Should cause no harm, but I'd keep it as in your 1st proposal. Sorry for the confusion. Anyways, this is a minor detail, looks good to me.
|
|
|
@alexeybakhtin This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patch is mostly clean, bar moving the try block in RSASignature.java. There's a compatibility risk there, but it seems reasonably safe. I don't think JDK-8149802 i suitable for backporting as it introduces a reset in a finally block.
|
Thank you. I've moved length checking out of the try block |
|
/integrate |
|
Going to push as commit 2131e40. |
|
@alexeybakhtin Pushed as commit 2131e40. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Almost clean backport from JDK11 PR
The only changes in the RSASignature::engineVerify() method: getDigestValue() is called outside of try/catch block
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/403/head:pull/403$ git checkout pull/403Update a local copy of the PR:
$ git checkout pull/403$ git pull https://git.openjdk.org/jdk8u-dev.git pull/403/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 403View PR using the GUI difftool:
$ git pr show -t 403Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/403.diff
Webrev
Link to Webrev Comment