Ran
|
Jobs
1
|
Files
89
|
Run time
2min
|
Badge
Embed ▾
README BADGES
|
push
github
FFI: Fix __tostring metamethod access to enum cdata value. Thanks to Sergey Kaplun. (cherry picked from commit f2a1cd432) On a 64-bit host, `*(uint32_t **)p` (in the `lj_cf_ffi_meta___tostring()`) is the read of 8 bytes, while the size of the cdata tail for the enum is only 4. This leads to heap-buffer-overflow during the call of `tostring()` on the corresponding cdata. This patch fixes the pointer cast to `(uint32_t *)p`, which is correct. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#10199 Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Reviewed-by: Maxim Kokryashkin <m.kokryashkin@tarantool.org> Signed-off-by: Sergey Kaplun <skaplun@tarantool.org>
5683 of 6027 branches covered (94.29%)
Branch coverage included in aggregate %.
1 of 1 new or added line in 1 file covered. (100.0%)
41 existing lines in 6 files now uncovered.21658 of 23435 relevant lines covered (92.42%)
2964407.67 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
2 |
91.98 |
-0.45% | src/luajit.c |
5 |
85.71 |
-2.16% | src/lj_sysprof.c |
6 |
94.74 |
-4.31% | src/lj_str.c |
7 |
95.78 |
-0.47% | src/lj_record.c |
10 |
77.8 |
-1.01% | src/lj_api.c |
11 |
86.71 |
-0.92% | src/lj_crecord.c |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 11349070883.1 | 89 |
92.8 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|