Ran
|
Jobs
1
|
Files
89
|
Run time
1min
|
Badge
Embed ▾
README BADGES
|
push
github
FFI: Treat cdata finalizer table as a GC root. Thanks to Sergey Bronnikov. (cherry picked from commit dda1ac273) There is a table `CTState->finalizer` that contains cdata finalizers. This table is created on initialization of the `ffi` module by calling the functions `luaopen_ffi` and `ffi_finalizer`. In some circumstances, this table could be collected by GC and then accessed by the function `lj_gc_finalize_cdata`. This leads to a heap-use-after-free problem. The patch fixes the problem. Sergey Bronnikov: * added the description and the tests for the problem Part of tarantool/tarantool#9595
5661 of 6017 branches covered (94.08%)
Branch coverage included in aggregate %.
1 of 1 new or added line in 1 file covered. (100.0%)
12 existing lines in 5 files now uncovered.21600 of 23410 relevant lines covered (92.27%)
2815504.06 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
77.24 |
-0.08% | src/lj_opt_fold.c |
2 |
96.3 |
-0.11% | src/lj_record.c |
2 |
98.84 |
-0.33% | src/lj_gc.c |
2 |
93.09 |
-0.99% | src/lj_ir.c |
5 |
85.71 |
-2.16% | src/lj_sysprof.c |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 8249042173.1 | 89 |
92.64 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|