Ran
|
Files
89
|
Run time
3s
|
Badge
Embed ▾
README BADGES
|
push
github
FFI: Turn FFI finalizer table into a proper GC root. Reported by Sergey Bronnikov. (cherry picked from commit f5affaa6c) The previous patch fixes the problem partially because the introduced GC root may not exist at the start phase of the GC cycle (since it isn't marked because it is not accessible from any GC root). In that case, the cdata finalizer table will be collected at the end of the cycle. Access to the cdata finalizer table exhibits heap use after free. The patch turns the finalizer table into a proper GC root. Note that the finalizer table is created at the initialization of the main Lua State instead of loading the FFI library. Sergey Bronnikov: * added the description and the test for the problem Part of tarantool/tarantool#10199 Reviewed-by: Sergey Kaplun <skaplun@tarantool.org> Reviewed-by: Maxim Kokryashkin <m.kokryashkin@tarantool.org> Signed-off-by: Sergey Kaplun <skaplun@tarantool.org>
5677 of 6025 branches covered (94.22%)
Branch coverage included in aggregate %.
21657 of 23431 relevant lines covered (92.43%)
2936022.72 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|