[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: coroutine library can cause panic with low memory
- From: M Joonas Pihlaja <jpihlaja@...>
- Date: Tue, 3 Mar 2009 01:00:23 +0200 (EET)
On Mon, 2 Mar 2009, Patrick Donnelly wrote:
> There are other cases where lua_checkstack may fail but it won't throw
> an error. If you attempt to allocate more space on the stack above the
> maximum C stack limit, then it will immediately return 0.
... and with that you shattered my illusion of having learnt to write
safe Lua client code. I totally did not expect that even though I
must have read the manual umpteen times now. There's a lot of code I
need to grep and fix.