◐ Shell
clean mode source ↗

bpo-39039: tarfile raises descriptive exception from zlib.error by jdevries3133 · Pull Request #27766 · python/cpython

* 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

ambv

ambv

@jdevries3133

vstinner

@jdevries3133

@jdevries3133

@jdevries3133

ambv

@ambv ambv removed the stale

Stale PR or inactive for long period of time.

label

Sep 28, 2021

ambv pushed a commit to ambv/cpython that referenced this pull request

Sep 29, 2021
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>

ambv pushed a commit to ambv/cpython that referenced this pull request

Sep 29, 2021
…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>

ambv added a commit that referenced this pull request

Sep 29, 2021
GH-27766) (GH-28613)

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

ambv added a commit that referenced this pull request

Sep 29, 2021
…GH-27766) (GH-28614)

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