Skip to content

Reject malformed B tree pages on database open - #10

Merged
MugdhoAI merged 21 commits into
mainfrom
audit/corrupt-database-validation
Oct 10, 2026
Merged

MugdhoAI merged 21 commits into
mainfrom
audit/corrupt-database-validation

Conversation

@MugdhoAI

Copy link
Copy Markdown
Owner

Validate persisted B tree structure before exposing it through the table API. The validation checks node types and capacities, page references, parent links, sorted positive row IDs, separator keys, leaf-chain order, and the metadata row count. Add regression tests for a corrupted node count and an invalid child reference.

This keeps corrupted on-disk state from reaching normal traversal code.

@MugdhoAI
MugdhoAI merged commit fe8fa61 into main Oct 10, 2026
2 checks passed
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.

1 participant