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

Initial changes required for ZIP64 support #2

Merged
merged 1 commit into from
Sep 16, 2015
Merged

Conversation

bjorn
Copy link
Contributor

@bjorn bjorn commented May 31, 2015

This is probably not complete and it's not well tested, but it allowed me to open a zip file with version 45 that was using the ZIP64 extension.

Most importantly, it does not allow reading ZIP files that would actually need this extension. It only makes things work for ZIP files that are using the extension fields for storing the file sizes, but it can't actually handle the higher size limits that are possible this way.

GitHub-issue: #1

This is probably not complete and it's not well tested, but it allowed
me to open a zip file with version 45 that was using the ZIP64 extension.

GitHub-issue: nezticle#1
nezticle added a commit that referenced this pull request Sep 16, 2015
Initial changes required for ZIP64 support
@nezticle nezticle merged commit 80cc5fc into nezticle:master Sep 16, 2015
if (start == -1) {
start = readUInt64(data);
data += 8;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since you just merged this I was reading this code again, and noticed that the above three reads may go beyond the actual size of the data for invalid ZIP archives. Small issue but may be worth adding a check for.

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

Successfully merging this pull request may close these issues.

2 participants