[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bug with unchecked stack overflow with coroutines
- From: Mike Pall <mikelu-0802@...>
- Date: Mon, 11 Feb 2008 15:40:47 +0100
Roberto Ierusalimschy wrote:
> The second bug is much more serious: following a suggestion from Reuben
> Tomas, we increased the limit for the C stack. But we forgot to adjust
> the values of LUA_REGISTRYINDEX and the like, so negative stack indices
> may overlap with these values, with disastrous consequences.
Unfortunately a change to this define would break binary module
compatibility in the 5.1 branch. I guess one has to back down
LUAI_MAXCSTACK to a value well below 10000. Still more than the
2048 limit in 5.1.2.