[Tarantool-patches] [PATCH luajit 3/6] FFI: Ensure returned string is alive in ffi.typeinfo().
Sergey Bronnikov
sergeyb at tarantool.org
Wed Nov 29 17:48:04 MSK 2023
Hello, Sergey
thanks for the patch! LGTM
On 10/23/23 12:22, Sergey Kaplun wrote:
> From: Mike Pall <mike>
>
> Reported by zhuizhuhaomeng.
>
> (cherry-picked from commit 94a40bb238092e73f3dc0c3626911a7efa997c22)
>
> `ffi.typeinfo()` doesn't check that the string containing the name type
> is alive when it sets this string to the returned table. This leads to
> the corresponding assertion failure in `checklivetv()`. This patch flips
> the white colour of the stored string to resurrect it.
>
> Sergey Kaplun:
> * added the description and the test for the problem
>
> Part of tarantool/tarantool#9145
<snipped>
More information about the Tarantool-patches
mailing list