lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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