RFR 8201355 : Avoid native memory allocation in sun.security.mscapi.PRNG.generateSeed

Ivan Gerasimov ivan.gerasimov at oracle.com
Wed Oct 17 18:03:57 UTC 2018


Hello!

In the function Java_sun_security_mscapi_PRNG_generateSeed() a native 
memory is allocated, and then its content is copied into a freshly 
allocated Java array.  The native memory allocation can be avoided, 
which also makes the code shorter.

Would you please help review the fix?

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8201355
WEBREV: http://cr.openjdk.java.net/~igerasim/8201355/00/webrev/

-- 
With kind regards,
Ivan Gerasimov




More information about the security-dev mailing list