FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-45507: EOFErrors should be thrown for truncated gzip members by rhpvorderman · Pull Request #29029 · python/cpython · GitHub

/ cpython Public

bpo-45507: EOFErrors should be thrown for truncated gzip members - #29029

Merged
ambv merged 1 commit into
python:mainfrom
rhpvorderman:bpo-45507
Nov 19, 2021
Merged

bpo-45507: EOFErrors should be thrown for truncated gzip members#29029
ambv merged 1 commit into
python:mainfrom
rhpvorderman:bpo-45507

Conversation

rhpvorderman commented Oct 18, 2021
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

This is to keep error compatibility with 3.10 and lower.

It was missed in my last PR #27941. When the gzip member contains an incomplete trailer (less than 8 bytes) the GzipFile-based implementation of 3.10 and below would throuw an EOF error, so the newer in-memory implementation should do the same.
Currently it throws 'struct.error: unpack requires a buffer of 8 bytes' when the trailer is truncated.

https://bugs.python.org/issue45507

Copy link
Copy Markdown

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

github-actions Bot added the stale Stale PR or inactive for long period of time. label Nov 18, 2021

Copy link
Copy Markdown
Contributor Author

@ambv I am sorry to bother you. This PR fixes a behavioral change that occurs because of #27941 . Since you reviewed that PR you seem to be the most appropriate person to ping.
It is a very small fix. Again, sorry to bother you!

ambv commented Nov 19, 2021

Copy link
Copy Markdown
Contributor

No bother at all, thanks for pinging me on this!

ambv merged commit 0ff3d95 into python:main Nov 19, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL