Ran
|
Jobs
1
|
Files
89
|
Run time
12s
|
Badge
README BADGES
|
push
github
Fix FOLD rule for BUFHDR append. Reported by XmiliaH. (cherry-picked from commit bc1bdbf62) `bufput_append()` may fold `BUFHDR RESET` + `BUFPUT` IRs to `BUFHDR APPEND` even if the right operand (`BUFSTR`) is the PHI. If it's not the last IR in the `BUFSTR` chain, this may lead to an incorrect resulting value in the buffer, which contains a longer string since `APPEND` is used instead of `RESET`. This patch adds the corresponding check inside the fold rule. Sergey Kaplun: * added the description and the test for the problem Part of tarantool/tarantool#9145
5376 of 5987 branches covered (0.0%)
Branch coverage included in aggregate %.
2 of 2 new or added lines in 1 file covered. (100.0%)
3 existing lines in 3 files now uncovered.20631 of 23356 relevant lines covered (88.33%)
2743118.9 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
93.09 |
-0.33% | src/lj_ir.c |
1 |
76.45 |
-0.04% | src/lj_opt_fold.c |
1 |
96.18 |
-0.11% | src/lj_record.c |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 7118606541.1 | 89 |
88.63 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|---|---|---|---|---|---|---|---|---|
13.79 | src/lj_utils_leb128.c | 132 | 51 | 7 | 44 | 1565145.0 - 35834 | 1 | 6 | |
61.83 | src/lj_clib.c | 431 | 101 | 65 | 36 | 2760.0 | 16 | 14 | |
64.75 | src/lj_cconv.c | 763 | 387 | 238 | 149 | 467899.0 - 53423 | 89 | 29 | |
66.47 | src/lj_cparse.c | 1937 | 1030 | 681 | 349 | 160068.0 - 20306 | 199 | 95 | |
70.38 | src/lj_carith.c | 429 | 252 | 175 | 77 | 500125.0 - 57983 | 65 | 24 | |
72.64 | src/lj_crecord.c | 1912 | 927 | 655 | 272 | 98.0 - 1.0 | 208 | 53 | |
73.62 | src/lj_strscan.c | 537 | 261 | 191 | 70 | 2787534.0 + 183474 | 102 | 35 | |
74.75 | src/lj_api.c | 1368 | 859 | 638 + 10 | 221 - 10 | 942650.0 - 16479 | 176 + 1 | 54 - 1 | |
75.31 | src/lib_ffi.c | 866 | 518 | 388 | 130 | 77875.0 - 9030 | 100 | 30 | |
76.45 | src/lj_opt_fold.c | 2537 + 1 | 977 + 1 | 732 | 245 + 1 | 30955.0 - 616 | 242 + 1 | 55 |