It seems that malloc locks up instead of returning NULL when it can't allocate a block big enough.
I don't *think* it's my bug (I've increased the stack size in ogc.ld from 128K to 256K), but it could be.
libogc: malloc hangs instead of returning NULL on failure.
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: libogc: malloc hangs instead of returning NULL on failure.
Definitely not your bug. I found some old default newlib code in the malloc support functions - not really sure why the default behaviour is to abort on failure tbh. Fixed in CVS, hopefully won't be too much longer before we get the next toolchain iteration out there.
Re: libogc: malloc hangs instead of returning NULL on failure.
Ah, thank you very much!
Who is online
Users browsing this forum: No registered users and 1 guest