lua-users home
lua-l archive

Re: does lua_pushstring check stack overflow? (Lua 5.0.2)

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


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

AltStyle によって変換されたページ (->オリジナル) /