|
Ran
|
Jobs
1
|
Files
89
|
Run time
1min
|
Badge
README BADGES
|
push
github
Fix error generation in load*. Reported by Sergey Kaplun. (cherry picked from commit e76bb50d4) The chunkname pointer to the "@filename" is put on the Lua stack before the `lua_loadx()` and is removed right before the next `lua_pushfstring()` in case of the error. If the GC takes the step right at this moment inside `lua_pushfstring()` the string may be collected, and the next read from this `chunkname + 1` is from the deallocated memory. This patch fixes this by using the source string (or the constant one) instead. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#11278 Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Signed-off-by: Sergey Kaplun <skaplun@tarantool.org> (cherry picked from commit 046e9b3a0)
5711 of 6047 branches covered (94.44%)
Branch coverage included in aggregate %.
2 of 2 new or added lines in 1 file covered. (100.0%)
22 existing lines in 5 files now uncovered.21786 of 23509 relevant lines covered (92.67%)
3867303.07 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 2 |
91.11 |
-0.32% | src/lj_alloc.c |
| 2 |
78.44 |
-0.16% | src/lj_opt_fold.c |
| 2 |
92.0 |
-0.44% | src/luajit.c |
| 6 |
94.74 |
-4.31% | src/lj_str.c |
| 10 |
77.8 |
-1.01% | src/lj_api.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 16004999594.1 | 89 |
93.03 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|