if( size > ULONG_MAX/8 ) /* is there a SIZE_T_MAX? */ Pike_error("Too large array (memory size exceeds size of size_t)\n");
There is probably similar errors in the string functions and quite a lot of other functions too.
We really should do a code review and check for it. I fixed all occurances I found in the fileencodings in the image module.
/ Per Hedbor ()
Previous text:
2004-08-18 14:00: Subject: out of memory in allocate
I better leave that problem for someone else to fix.
/ Martin Nilsson (DivX Networks)