[jdk8u-dev] Request for approval and review: 8209129: Further improvements to cipher buffer management
Weijun Wang
weijun.wang at oracle.com
Fri Aug 24 01:15:02 UTC 2018
I see. The change looks fine.
Thanks
Max
> On Aug 24, 2018, at 12:07 AM, Seán Coffey <sean.coffey at oracle.com> wrote:
>
> Yes - around that area. For 8u, there is no finalizer but a new finally block was added to 12. I've added the same to 8u.
>
>
>> 111 try {
>> 112 this.prf = Mac.getInstance(prfAlgo, SunJCE.getInstance());
>> 113 this.key = deriveKey(prf, passwdBytes, salt, iterCount, keyLength);
>> 114 } catch (NoSuchAlgorithmException nsae) {
>> 115 // not gonna happen; re-throw just in case
>> 116 InvalidKeySpecException ike = new InvalidKeySpecException();
>> 117 ike.initCause(nsae);
>> 118 throw ike;
>> 119 } finally {
>> 120 Arrays.fill(passwdBytes, (byte)0x00);
>> 121 }
>>
> regards,
> Sean.
>
>
>
> On 23/08/2018 17:01, Weijun Wang wrote:
>> You mean the CleanerFactory difference?
>>
>>
>>> On Aug 23, 2018, at 11:45 PM, Seán Coffey <sean.coffey at oracle.com>
>>> wrote:
>>>
>>> I found an issue with patch application to src/share/classes/com/sun/crypto/provider/PBKDF2KeyImpl.java
>>>
>>> Corrected on line 120 now.
>>>
>>> new webev :
>>> http://cr.openjdk.java.net/~coffeys/webrev.8209129.8u.v2/webrev/index.html
>>>
>>>
>>> regards,
>>> Sean.
>>>
>>>
>>> On 23/08/2018 12:22, Seán Coffey wrote:
>>>
>>>> I'm looking to port this fix to jdk8u-dev. Fix already pushed to JDK 12. The patch applied almost cleanly. There was some minor failure concerning the insertion of import statements at top of files IIRC.
>>>>
>>>> JBS report :
>>>> https://bugs.openjdk.java.net/browse/JDK-8209129
>>>>
>>>> review thread :
>>>> http://mail.openjdk.java.net/pipermail/security-dev/2018-August/017838.html
>>>> http://cr.openjdk.java.net/~coffeys/webrev.8209129.8u/webrev/
>>>>
>>>>
>>>> regards,
>>>> Sean.
>>>>
>>>>
>
More information about the jdk8u-dev
mailing list