Skip to content

fix: verify backup archive trailer integrity - #30

Merged
VikramLex merged 1 commit into
Graphicle-AI:mainfrom
dajiaohuang:w5/graphicle-archive-integrity-20261111
Nov 13, 2026
Merged

VikramLex merged 1 commit into
Graphicle-AI:mainfrom
dajiaohuang:w5/graphicle-archive-integrity-20261111

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

Summary

Validate the archive trailer row count against the table data and reject bytes after the final trailer. This keeps the declared archive metadata consistent with the payload and ensures the complete file is covered by the format's integrity contract.

Validation

  • cargo test --locked --lib archive::tests — 3 passed
  • cargo deny check — advisories, bans, licenses, and sources reported ok; duplicate dependency warnings remain
  • rustfmt --check src/archive.rs — passed
  • git diff --check — passed

Signed-off-by: dajiaohuang <mikewushuwen@outlook.com>
@dajiaohuang
dajiaohuang marked this pull request as ready for review November 12, 2026 16:56
@VikramLex
VikramLex merged commit 2a9577a into Graphicle-AI:main Nov 13, 2026
8 of 11 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.

2 participants