RFR: JDK-8007607
Florian Weimer
fweimer at redhat.com
Wed Feb 6 17:15:05 UTC 2013
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
More information about the security-dev
mailing list