[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug in lua 5.2.1?
- From: Patrick Donnelly <batrick@...>
- Date: Wed, 5 Dec 2012 15:38:41 -0500
On Wed, Dec 5, 2012 at 3:19 PM, Nikolay Zapolnov <zapolnov@gmail.com> wrote:
> I am using only standart API of Lua (only lua_pushXXX, lua_insert,
> lua_remove, lua_next, lua_createtable, lua_getfield, lua_setfield -- i.e. no
> "strange" stack manipulation is done).
> Lua library is not modified (i.e. vanilla lua 5.2.1 distribution).
> Number of entries on the Lua stack is small (something about 100-200, memory
> block as reported by valgrind is also very small)
> Memory allocator is the default one.
>
> How can I overflow lua stack in this case?
http://www.lua.org/manual/5.2/manual.html#4.2
You need to ensure room on the stack exists using lua_checkstack or
luaL_checkstack before pushing that many values.
--
- Patrick Donnelly