Skip to content

fix(tar): keep pax size consistent with entry bodies - #200

Merged
ayuhito merged 1 commit into
mainfrom
fix/pax-body-size
Oct 12, 2026
Merged

ayuhito merged 1 commit into
mainfrom
fix/pax-body-size

Conversation

@ayuhito

@ayuhito ayuhito commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Overview

Caller-provided pax.size could disagree with the written body, causing readers to lose entry boundaries or interpret file contents as another entry. Write PAX size from the entry's body size, so repacking with stale metadata produces a correctly framed archive while preserving other PAX attributes.

@pkg-pr-new

pkg-pr-new Bot commented Oct 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/modern-tar@200

commit: bf532db

@ayuhito
ayuhito merged commit 035d5ec into main Oct 12, 2026
18 checks passed
@ayuhito
ayuhito deleted the fix/pax-body-size branch October 12, 2026 06:52
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