Skip to content

[3.10] bpo-39039: tarfile raises descriptive exception from zlib.error (GH-27766)#28613

Merged
ambv merged 1 commit into
python:3.10from
ambv:backport-b6fe857-3.10
Sep 29, 2021
Merged

[3.10] bpo-39039: tarfile raises descriptive exception from zlib.error (GH-27766)#28613
ambv merged 1 commit into
python:3.10from
ambv:backport-b6fe857-3.10

Conversation

@ambv

@ambv ambv commented Sep 29, 2021

Copy link
Copy Markdown
Contributor
  • during tarfile parsing, a zlib error indicates invalid data
  • tarfile.open now raises a descriptive exception from the zlib error
  • this makes it clear to the user that they may be trying to open a
    corrupted tar file
    (cherry picked from commit b6fe857)

Co-authored-by: Jack DeVries 58614260+jdevries3133@users.noreply.github.com

https://bugs.python.org/issue39039

pythonGH-27766)

* during tarfile parsing, a zlib error indicates invalid data
* tarfile.open now raises a descriptive exception from the zlib error
* this makes it clear to the user that they may be trying to open a
  corrupted tar file
(cherry picked from commit b6fe857)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
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.

4 participants