Skip to content

Fix UT: address UAF in TestRaftLogStore lifecycle_test under ASan#860

Open
Besroy wants to merge 1 commit intoeBay:masterfrom
Besroy:fix_logstore_ut
Open

Fix UT: address UAF in TestRaftLogStore lifecycle_test under ASan#860
Besroy wants to merge 1 commit intoeBay:masterfrom
Besroy:fix_logstore_ut

Conversation

@Besroy
Copy link
Contributor

@Besroy Besroy commented Feb 5, 2026

This change restore pending callback tracking in LogDev::on_flush_completion to fix the UT TestRaftLogStore.lifecycle_test UAF issue.

This change restore pending callback tracking in LogDev::on_flush_completion to fix the UT TestRaftLogStore.lifecycle_test UAF issue.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.40%. Comparing base (1a0cef8) to head (6227ac0).
⚠️ Report is 312 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #860      +/-   ##
==========================================
- Coverage   56.51%   48.40%   -8.12%     
==========================================
  Files         108      110       +2     
  Lines       10300    12857    +2557     
  Branches     1402     6170    +4768     
==========================================
+ Hits         5821     6223     +402     
+ Misses       3894     2544    -1350     
- Partials      585     4090    +3505     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

auto ld_key = logdev_key{idx, dev_offset};
auto comp_cb = req->log_store->get_comp_cb();
(req->cb) ? req->cb(req, ld_key) : comp_cb(req, ld_key);
m_pending_callback--;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m_pending_callback += req_map.size();
for(....){
}
m_pending_callback = 0;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants