Skip to content

gh-161588: Ignore invalid PAX header 'size' in tarfile to extract files properly - #161589

Open
ptim0626 wants to merge 3 commits into
python:mainfrom
ptim0626:extract-despite-invalid-pax-size
Open

ptim0626 wants to merge 3 commits into
python:mainfrom
ptim0626:extract-despite-invalid-pax-size

Conversation

@ptim0626

@ptim0626 ptim0626 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

In this PR, I limit the invalid PAX header to be ignored to size only. uid/gid/atime/mtime can be similarly handled if this approach is appropriate and fits within the scope of this PR. Parsing of similar PAX headers are grouped together now, i.e. GNU.sparse.name/path and GNU.sparse.size/GNU.sparse.realsize/size.

@ptim0626
ptim0626 force-pushed the extract-despite-invalid-pax-size branch from 526c0fb to 0dc4a15 Compare November 9, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant