|
Ran
|
Jobs
1
|
Files
518
|
Run time
2min
|
Badge
README BADGES
|
push
github
box: fix session use-after-free If session is created on demand in fiber we delete it when fiber is stopped. But we do not clear session and credentials in fiber storage. It is not an issue for standalone fiber (outside of fiber pool) as fiber will be destroyed or recycled and will not have chance to execute any code before that. In case of fiber pool it become dangerous as fiber is reused. Fortunately we never hit this because we either reset session and credentials at start in code executed in fiber (like in iproto) or execute code that does not check access (like in vinyl). Recently we add `tnt_tx_push()` to execute callback in TX. This time the issue is revealed. Let's just clear session and credentials in fiber storage when fiber is stopped. Closes #11267 NO_DOC=bugfix (cherry picked from commit 73af81f8e)
69973 of 123847 branches covered (56.5%)
2 of 2 new or added lines in 1 file covered. (100.0%)
31 existing lines in 11 files now uncovered.102988 of 117716 relevant lines covered (87.49%)
2236231.58 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
94.23 |
-0.19% | src/box/xrow_update_field.c |
| 1 |
96.55 |
-1.15% | src/lib/core/histogram.c |
| 1 |
97.15 |
0.0% | src/lib/msgpuck/msgpuck.h |
| 1 |
96.15 |
-0.05% | src/lib/salad/bps_tree.h |
| 1 |
91.68 |
-0.11% | src/lib/swim/swim.c |
| 1 |
97.41 |
-0.85% | src/lib/vclock/vclock.c |
| 2 |
84.43 |
0.1% | src/box/xlog.c |
| 3 |
90.78 |
-0.15% | src/box/applier.cc |
| 3 |
92.84 |
-0.2% | src/lib/core/fiber.c |
| 8 |
60.42 |
-3.55% | src/lib/core/fio.c |
| 9 |
88.14 |
-7.63% | src/box/vy_regulator.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 14386099710.1 | 518 |
87.49 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|