The Wayback Machine - https://web.archive.org/web/20251106141453/https://github.com/python/cpython/pull/123641
Skip to content

Conversation

@sethmlarson
Copy link
Contributor

@sethmlarson sethmlarson commented Sep 3, 2024 •

  • Remove backtracking when parsing tarfile headers
  • Rewrite PAX header parsing to be stricter
  • Optimize parsing of GNU extended sparse headers v0.0

(cherry picked from commit 34ddb64)

…rs (pythonGH-121286)

* Remove backtracking when parsing tarfile headers
* Rewrite PAX header parsing to be stricter
* Optimize parsing of GNU extended sparse headers v0.0

(cherry picked from commit 34ddb64)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
@sethmlarson
Copy link
Contributor Author

Fixed the failures, the ReadError from tarfile.open() no longer includes all the sub-errors that occurred per-compression format so we can only look at the top-level error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants