Skip to content

docs: Document RocksDB wrapper security hotfix in README and CHANGELOG - #184

Merged
makr-code merged 2 commits into
developfrom
copilot/update-readme-changelog-hotfix
Jan 3, 2026
Merged

makr-code merged 2 commits into
developfrom
copilot/update-readme-changelog-hotfix

Conversation

Copilot AI commented Jan 3, 2026 •

Copy link
Copy Markdown
Contributor

Security audit of January 2, 2026 identified and fixed 15 vulnerabilities in rocksdb_wrapper.cpp. This PR documents the implemented fixes.

Changes

README.md

  • Added security hotfix section to "What's New" highlighting:
    • 7 critical + 8 medium severity fixes
    • Use-after-free in BlockBasedTableOptions
    • Null-pointer protection for env initialization
    • Transaction safety improvements

CHANGELOG.md

  • New Security subsection in [Unreleased] with:
    • CRITICAL: Use-after-free fix (lines 108-117) - proper shared_ptr lifetime management for filter_policy
    • CRITICAL: Null-check for options_->env (lines 120-124) - initialize to Env::Default() before SetBackgroundThreads
    • MEDIUM: Transaction error handling - removed double rollback after commit failures
    • MEDIUM: Iterator lifecycle management - explicit cleanup to prevent resource leaks
    • Reference to complete audit report: ROCKSDB_WRAPPER_AUDIT_REPORT.md

Key Fixes Example

// Before: Use-after-free risk
rocksdb::BlockBasedTableOptions table_options;
table_options.filter_policy.reset(rocksdb::NewBloomFilterPolicy(...));
// table_options destroyed, but pointer still used

// After: Proper lifetime management
table_options.filter_policy.reset(rocksdb::NewBloomFilterPolicy(...));
options_->table_factory.reset(rocksdb::NewBlockBasedTableFactory(table_options));
// Factory copies internal structures immediately

Status: 11/15 issues fixed, 4 scheduled for next phase.

Original prompt

Die readme und das changelog muss um den hotfix zum rocksdb wrapper erweitert werden


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update README and changelog for RocksDB wrapper hotfix docs: Document RocksDB wrapper security hotfix in README and CHANGELOG Jan 3, 2026
Copilot AI requested a review from makr-code January 3, 2026 07:35
@makr-code
makr-code marked this pull request as ready for review January 3, 2026 07:47
@makr-code
makr-code merged commit 62a4341 into develop Jan 3, 2026
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
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.

2 participants