Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-24301: Do not fail when gzip files have trailing garbage #29847

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rhpvorderman
Copy link
Contributor

@rhpvorderman rhpvorderman commented Nov 29, 2021

Apparently the gzip command line utility and several others display the same behaviour. Python failing here is unexpected.

The code was adapted so that trailing garbage emits a warning (just like the gzip cli). The first member is still checked for a correct magic number.

https://bugs.python.org/issue24301

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Dec 30, 2021
Copy link
Contributor

@MaxwellDupre MaxwellDupre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add to docs, please?
I think its important users know what to expect. Does't need much, similar to what you have in NEWS.

@rhpvorderman
Copy link
Contributor Author

@MaxwellDupre I added some ..versionchanged notes. Is that what you had in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting core review stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants