[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The life cycle of userdata values?
- From: Patrick Donnelly <batrick@...>
- Date: Mon, 25 Jul 2016 11:37:01 -0400
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