Trivial fix - just add null check and OOM error handling for the 2 malloc calls inside src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c. Please find webrev against JDK8 at: http://cr.openjdk.java.net/~valeriep/7107615/webrev.00/ Thanks, Valerie