|
Ran
|
Jobs
1
|
Files
89
|
Run time
1min
|
Badge
README BADGES
|
push
github
Prevent sanitizer warnings for lj_tab_new*() and table.new(). Reported by Sergey Bronnikov. (cherry picked from commit 8f421c81e) The Undefined Behaviour Sanitizer [1] produce a warning because the function `lua_createtable()` takes signed integer arguments, but the `lj_tab_new_ah()` was not properly validating or converting these signed values before using them in unsigned arithmetic. The fix changes the signature of `lj_tab_new_ah()` to accept uint32_t directly, and adjusts `lua_createtable()` to cast the incoming signed int values to uint32_t before passing them. [1]: https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html Sergey Bronnikov: * added the description and the test for the problem Part of tarantool/tarantool#12480
5721 of 6056 branches covered (94.47%)
Branch coverage included in aggregate %.
3 of 3 new or added lines in 2 files covered. (100.0%)
17 existing lines in 4 files now uncovered.21841 of 23547 relevant lines covered (92.75%)
3972684.44 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 10 |
77.88 |
-1.01% | src/lj_api.c |
| 4 |
77.58 |
0.31% | src/lj_opt_fold.c |
| 2 |
92.0 |
-0.44% | src/luajit.c |
| 1 |
96.71 |
-0.05% | src/lj_record.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 27189360090.1 | 89 |
93.11 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|