[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (work5) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 07 Mar 2005 10:21:51 -0300
> So perhaps the code is meant
> to read as follows?
>
> lparser.c:171
> luaM_growvector(ls->L, f->locvars, fs->nlocvars, f->sizelocvars,
> LocVar, INT_MAX, "too many local variables");
No. That would allow overflows when ints are larger than shorts.
I'm afraid we have to change that to SHRT_MAX. (Well, 32K variables
per function does not seem an unreasonable limit.)
-- Roberto