RFR: JDK-8007607
Valerie (Yu-Ching) Peng
valerie.peng at oracle.com
Wed Feb 6 04:25:01 UTC 2013
I think we need to throw OutOfMemoryError when malloc/realloc() calls
return null.
You can find a utility function in
src/share/native/sun/security/pkcs11/wrapper/p11_util.c doing exactly
that, i.e. throw OutOfMemoryError.
Thanks,
Valerie
On 02/05/13 15:44, John Zavgren wrote:
> Greetings:
>
> I modified the native code to eliminate potential memory loss and crashes by checking the return values of malloc() and realloc() calls.
>
> The webrev image of these changes is visible at:
> http://cr.openjdk.java.net/~jzavgren/8007607/webrev.01/
>
> Thanks!
> John Zavgren
More information about the security-dev
mailing list