Skip to content

Possible use-after-free while using lua_tolstring #58

@filonenko-mikhail

Description

@filonenko-mikhail

Well, as we discussed in Tarantool-ru telegram chat, this approach could lead to use-after-free (https://pgl.yoyo.org/luai/i/lua_tolstring)

Maybe we should use luaL_ref/luaL_unref here.

Also it would be great to add a test for such case.

Originally posted by @olegrok in #22 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions