Skip to content

fix(manifest): protect FileSequenceNum from aliasing#1397

Open
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/encryption-key-validation
Open

fix(manifest): protect FileSequenceNum from aliasing#1397
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/encryption-key-validation

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Return a copied pointer from ManifestEntry.FileSequenceNum() to avoid exposing internal manifestEntry state.
  • Added regression coverage for pointer aliasing; mutating the returned pointer no longer mutates manifest-entry data.
  • Added tests in manifest_test.go for FileSequenceNum() copy behavior.

@fallintoplace fallintoplace requested a review from zeroshade as a code owner July 4, 2026 23:30
@fallintoplace fallintoplace force-pushed the fix/encryption-key-validation branch from 3d9de14 to e9556b4 Compare July 4, 2026 23:54
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