[Tarantool-patches] [PATCH 3/3] session: su left dangling credentials object on stack
Konstantin Osipov
kostja.osipov at gmail.com
Mon Nov 4 20:23:32 MSK 2019
* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [19/11/01 00:39]:
> Box.session.su() worked like following: check user
> existence, create its credentials on the stack, check
> the function, call the function, destroy the
> credentials, restore the old credentials.
>
> After creating the credentials on the stack the
> function check could raise a Lua error. It led to the
> credentials object not being destroyed. As a result,
> user.credentials_list was pointing at invalid memory.
>
> Now there is no errors between creating the temporary
> credentials and its destruction.
lgtm
--
Konstantin Osipov, Moscow, Russia
More information about the Tarantool-patches
mailing list