-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8258915: Temporary buffer cleanup #2070
Conversation
8258915: More temporary buffer cleanup
👋 Welcome back weijun! A progress list of the required criteria for merging this PR into |
/label remove core-libs |
@wangweij |
Webrevs
|
please add noreg label to the JBS bug. |
Added. Thanks. |
Just pushed a new commit. First I merged into the RSA PKCS #1 code change from @valeriepeng, and then reapplied the cleanup to |
src/java.base/share/classes/com/sun/crypto/provider/PBKDF2Core.java
Outdated
Show resolved
Hide resolved
src/java.base/share/classes/com/sun/crypto/provider/PBKDF2HmacSHA1Factory.java
Outdated
Show resolved
Hide resolved
src/java.base/share/classes/sun/security/pkcs12/PKCS12KeyStore.java
Outdated
Show resolved
Hide resolved
New commit. However, I was writing test to detect leak in |
Another new commit. Last time I only fixed KeySpec on PKCS8 format. This time it's for an algorithm's own spec. |
src/java.base/share/classes/com/sun/crypto/provider/DESedeKeyGenerator.java
Outdated
Show resolved
Hide resolved
How about the Tls*Generator classes in SunJCE provider? Looks like they need to be handled as well. |
I'll take a look. I thought the secrets going in and out of them are ephemeral. |
src/java.base/share/classes/com/sun/crypto/provider/TlsKeyMaterialGenerator.java
Show resolved
Hide resolved
src/java.base/share/classes/com/sun/crypto/provider/TlsKeyMaterialGenerator.java
Outdated
Show resolved
Hide resolved
src/java.base/share/classes/com/sun/crypto/provider/TlsKeyMaterialGenerator.java
Outdated
Show resolved
Hide resolved
src/java.base/share/classes/com/sun/crypto/provider/TlsKeyMaterialGenerator.java
Outdated
Show resolved
Hide resolved
src/java.base/share/classes/com/sun/crypto/provider/TlsKeyMaterialGenerator.java
Show resolved
Hide resolved
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.
Other files look fine. Thanks~
Add one more clean. Adjusting macKeyLen and ivLen in TlsKeyMaterialParameterSpec exposed another leak. |
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.
Changes look good. Thanks~
@wangweij This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thanks a lot for your patience and precious feedback. |
@wangweij This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
/integrate |
@wangweij Since your change was applied there has been 1 commit pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit f834557. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Clean up temporary byte array, char array, and keyspec around keys and passwords.
No new regression test.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/2070/head:pull/2070
$ git checkout pull/2070
Update a local copy of the PR:
$ git checkout pull/2070
$ git pull https://git.openjdk.java.net/jdk pull/2070/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2070
View PR using the GUI difftool:
$ git pr show -t 2070
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/2070.diff