8 Apr
2001
8 Apr
'01
5:24 p.m.
gerard patel wrote:
I have looked at wrc code and there is a strange 100K limit on the size of mem allocation :
assert(size > 0); assert(size < 102400); res = malloc(size); if(res == NULL) {
Baffling code - hardcoded limit hidden in a C file :-/
I removed the assert and wrc was able to handle a 1 megabyte bitmap.
Anyone has an idea about the meaning of this limit ?
IIRC, this was used for some heuristics to protect wrc from bogus data (like bad pointers, and invalid RC file) A+ -- --------------- Eric Pouech (http://perso.wanadoo.fr/eric.pouech/) "The future will be better tomorrow", Vice President Dan Quayle