|
Ran
|
Files
89
|
Run time
4s
|
Badge
README BADGES
|
push
github
FFI: Avoid dangling cts->L. Reported by ZumiKua. (cherry picked from commit c94312d34) When executing cdata finalizer on some lua_State, this state is set to `cts->L`. If the state will be GC-ed and freed later, this reference becomes dangling, so any FFI callback will use this invalid reference. This patch fixes it by setting `cts->L` to the `mainthread` on the destruction of the referenced one. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#12134 Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Signed-off-by: Sergey Kaplun <skaplun@tarantool.org>
5710 of 6047 branches covered (94.43%)
Branch coverage included in aggregate %.
21789 of 23517 relevant lines covered (92.65%)
3885577.82 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|