Skip to content

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

Open
rhpvorderman wants to merge 3 commits into
python:mainfrom
rhpvorderman:bpo-24301
Open

bpo-24301: Do not fail when gzip files have trailing garbage#29847
rhpvorderman wants to merge 3 commits into
python:mainfrom
rhpvorderman:bpo-24301

Conversation

@rhpvorderman
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Apr 18, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@jonathanunderwood
Copy link
Copy Markdown

Is there any chance of moving this one forward?

@rhpvorderman
Copy link
Copy Markdown
Contributor Author

If the changes as is are deemed OK I am prepared to port them to the newest python version and resolve the conclicts.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Apr 10, 2026
@github-actions
Copy link
Copy Markdown

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 May 11, 2026
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.

8 participants