lua-users home
lua-l archive

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


On Mon, Jul 25, 2016 at 11:04 AM, Marc Balmer <marc@msys.ch> wrote:
> (The code in question is the Lua PostgreSQL interface on
> github.com/arcapos/luapgsql, the functions conn_execPrepared()
> and get_sql_params())

Looks like you forgot (multiple calls to) lua_checkstack. I suggest
you add some sensible stack size / type assertions to those functions.
Also use some debug functions which print the stack to confirm the
userdata are created correctly.

-- 
Patrick Donnelly