Request for approval: Bug 100057 - Potential stack corruption in GetJavaProperties
Alan Bateman
Alan.Bateman at Sun.COM
Fri May 22 12:04:59 UTC 2009
Andrew Haley wrote:
> :
> OK. I'll check for the NULL, then. If I have to change the patch that's
> been in IcedTea for ages then I'll use strdup instead of malloc. But what
> is one supposed to do if the allocation fails? Simply emit an error
> message to stderr and call abort() ?
>
JNU_ThrowOutOfMemoryError(env, NULL) and return NULL should do it and
will be treated as a fatal error by HotSpot.
-Alan.
More information about the core-libs-dev
mailing list