]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 31 Aug 2024 22:35:24 +0000 (00:35 +0200)
committerGitHub <noreply@github.com>
Sat, 31 Aug 2024 22:35:24 +0000 (22:35 +0000)
commit4eaf4891c12589e3c7bdad5f5b076e4c8392dd06
tree9dd2ccabf30b03579f8b1cee9abfb59362d48a4f
parent5b3fcc04e30971ef4a8002003454cae3de910435
[3.12] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (GH-123543)

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

(cherry picked from commit 34ddb64d088dd7ccc321f6103d23153256caa5d4)

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>
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]