Request for approval: Bug 100057 - Potential stack corruption in GetJavaProperties
Alan.Bateman at Sun.COM
Fri May 22 05:04:59 PDT 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.
More information about the core-libs-dev