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-34606: decode extra data only if zip64 end of central directory record is present #9107

Closed
wants to merge 3 commits into from

Conversation

vladima
Copy link
Contributor

@vladima vladima commented Sep 7, 2018

During compression extra data is encoded conditionally when Zip64 extension is enabled but decoding used to to unconditional which lead to attempts to decode data that was not encoded in the first place.

https://bugs.python.org/issue34606

Copy link

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

looks good otherwise

rmtree(TESTFN2)

@requires_zlib
def test_extra_field(self):
Copy link

Choose a reason for hiding this comment

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

just curious, is it possible to use Pathlib here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't see why not, I've picked os.path.join for uniformity just to follow the pattern used in other tests - if Pathlib is preferable option, I can change my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants