[8u] RFR 8228835: Memory leak in PKCS11 provider when using AES GCM

Martin Balao mbalao at redhat.com
Fri Aug 28 18:12:37 UTC 2020


Hi,

I'd like to request a review of the 8u backport of 8228835 [1]:

 * Webrev.00
  *
http://cr.openjdk.java.net/~mbalao/webrevs/8228835/8228835.jdk8u.jdk.webrev.00/

Main line patch does not apply cleanly because:

 * src/share/native/sun/security/pkcs11/wrapper/p11_util.c
  * 8074838 is not in 8u and the Hook #12 expects to see "*ckpLength =
(CK_ULONG) strlen(pCharArray);" line around the modified line. In 8u,
the line is "*ckpLength = strlen(pCharArray);". 8074838 (Resolve
disabled warnings for libj2pkcs11) is not related to the bug that
8228835 fixes (Memory leak in PKCS11 provider when using AES GCM), so
I've not considered it as a dependency.

Testing: I've observed no regressions in the sun/security/pkcs11 category.

Thanks,
Martin.-

--
[1] - https://bugs.openjdk.java.net/browse/JDK-8228835



More information about the jdk8u-dev mailing list