On 02/06/2013 12:44 AM, 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/

In NativeUtil.c, you need to free the first allocation if the second one fails. (This also applies if you throw an OOM error.)

--
Florian Weimer / Red Hat Product Security Team

Reply via email to