Wrc question
eric pouech
eric.pouech at wanadoo.fr
Sun Apr 8 12:24:58 CDT 2001
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
More information about the wine-devel
mailing list