Skip to content

gh-83245: Raise BadZipFile instead of ValueError when reading a corrupt file #32291

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

Merged
merged 11 commits into from
May 23, 2022

Conversation

dignissimus
Copy link
Contributor

@dignissimus dignissimus commented Apr 3, 2022

@dignissimus dignissimus changed the title bpo-30964: Raise BadZipFile isntead of ValueError when reading a corrupt file bpo-39064: Raise BadZipFile isntead of ValueError when reading a corrupt file Apr 3, 2022
Co-authored-by: Irit Katriel <[email protected]>
@dignissimus dignissimus changed the title bpo-39064: Raise BadZipFile isntead of ValueError when reading a corrupt file bpo-39064: Raise BadZipFile instead of ValueError when reading a corrupt file Apr 4, 2022
@dignissimus dignissimus changed the title bpo-39064: Raise BadZipFile instead of ValueError when reading a corrupt file gh-83245: Raise BadZipFile instead of ValueError when reading a corrupt file Apr 14, 2022
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.

Ran 258 tests in 59.938s
OK (skipped=1)
Looks ok.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM in general, but I have few nitpicks.

@jvoisin jvoisin mannequin mentioned this pull request Apr 10, 2022
@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels May 23, 2022
@miss-islington
Copy link
Contributor

Thanks @dignissimus for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @dignissimus for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-93140 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label May 23, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 23, 2022
… corrupt ZIP file (pythonGH-32291)

Co-authored-by: Serhiy Storchaka <[email protected]>
(cherry picked from commit 202ed25)

Co-authored-by: Sam Ezeh <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 23, 2022
… corrupt ZIP file (pythonGH-32291)

Co-authored-by: Serhiy Storchaka <[email protected]>
(cherry picked from commit 202ed25)

Co-authored-by: Sam Ezeh <[email protected]>
@bedevere-bot
Copy link

GH-93141 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label May 23, 2022
miss-islington added a commit that referenced this pull request May 25, 2022
…a corrupt ZIP file (GH-32291) (GH-93141)

Co-authored-by: Serhiy Storchaka <[email protected]>
(cherry picked from commit 202ed25)


Co-authored-by: Sam Ezeh <[email protected]>

Automerge-Triggered-By: GH:serhiy-storchaka
miss-islington added a commit that referenced this pull request May 25, 2022
…a corrupt ZIP file (GH-32291) (GH-93140)

Co-authored-by: Serhiy Storchaka <[email protected]>
(cherry picked from commit 202ed25)


Co-authored-by: Sam Ezeh <[email protected]>

Automerge-Triggered-By: GH:serhiy-storchaka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants