]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121285: Remove backtracking when parsing tarfile headers (GH-121286)
authorSeth Michael Larson <seth@python.org>
Sat, 31 Aug 2024 22:17:05 +0000 (17:17 -0500)
committerGitHub <noreply@github.com>
Sat, 31 Aug 2024 22:17:05 +0000 (15:17 -0700)
commit34ddb64d088dd7ccc321f6103d23153256caa5d4
tree03a35b0fe9aa0200ec90b2a88af1d3d76a6fc4e5
parent0cba289870d5cd41f24b2f63b9480e4593aa2330
gh-121285: Remove backtracking when parsing tarfile headers (GH-121286)

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

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS.d/next/Security/2024-07-02-13-39-20.gh-issue-121285.hrl-yI.rst [new file with mode: 0644]