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

vmnetx-generate has problems with large package members on Python < 2.7.4 #49

Open
bgilbert opened this issue Oct 1, 2013 · 0 comments
Labels

Comments

@bgilbert
Copy link
Contributor

bgilbert commented Oct 1, 2013

When generating a package with one or more members larger than 4 GB, struct complains:

'L' format requires 0 <= number <= 4294967295

This is a Python zipfile bug, fixed in Python 2.7.4. On Python 2.7 this produces a struct.error exception and is fatal. On Python 2.6 it is only a warning, but the resulting Zip file has an incorrect local file header (the size is modulo 4 GB). This doesn't affect VMNetX because zipfile reads the file size from the central directory, which is written correctly. However, other utilities (e.g. unzip) may declare the package file invalid.

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

No branches or pull requests

1 participant