|
Ran
|
Jobs
1
|
Files
89
|
Run time
1min
|
Badge
README BADGES
|
push
github
Reject negative getfenv()/setfenv() levels to prevent compiler warning. Thanks to Sergey Kaplun. (cherry picked from commit 9d777346b) When the number represented the level value is given to the `getfenv()`/`setfenv()`, it is cast to the `int`. Assume the given value is `2^31`, i.e. the resulting value after the cast is `INT_MIN`. After this, it will be decremented in `lj_debug_level()` and underflowed to the `INT_MAX`. That produces the UBSan warning about signed integer overflow. This patch raises the error early in the aforementioned functions, since a negative level value is meaningless. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#11055 Reviewed-by: Sergey Bronnikov <sergeyb@tarantool.org> Signed-off-by: Sergey Kaplun <skaplun@tarantool.org> (cherry picked from commit 45d7f251a)
5696 of 6035 branches covered (94.38%)
Branch coverage included in aggregate %.
4 of 4 new or added lines in 1 file covered. (100.0%)
28 existing lines in 8 files now uncovered.21702 of 23442 relevant lines covered (92.58%)
2962953.51 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
96.29 |
-0.05% | src/lj_record.c |
| 1 |
88.47 |
0.58% | src/lj_crecord.c |
| 1 |
78.42 |
-0.08% | src/lj_opt_fold.c |
| 2 |
92.0 |
-0.44% | src/luajit.c |
| 2 |
96.98 |
-0.38% | src/lj_snap.c |
| 5 |
85.71 |
-2.16% | src/lj_sysprof.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 | 13159888061.1 | 89 |
92.95 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|