Re: does lua_pushstring check stack overflow? (Lua 5.0.2)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: does lua_pushstring check stack overflow? (Lua 5.0.2)
- From: Klaus Ripke <paul-lua@...>
- Date: 2005年11月28日 10:16:57 +0100
On Mon, Nov 28, 2005 at 11:50:52AM +0600, Antero Vipunen wrote:
> I experience segfault when try to run following code snippet:
...
> for(i = 1; i < 50; ++i) {
> sprintf(buf, "%d", i);
> lua_pushstring(L, buf);
> }
"
When you interact with Lua API,
you are responsible for controlling stack overflow.
"
http://www.lua.org/manual/5.0/manual.html#3.2