8?
/ Mirar
Previous text:
2004-08-18 14:21: Subject: out of memory in allocate
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 ()