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

Light Untar limits files inside of the tar to ~8GB, and NSData representations to ~4GB #13

Open
iJoeCollins opened this issue Feb 24, 2014 · 0 comments

Comments

@iJoeCollins
Copy link
Contributor

The historical limit of a file in a tar archive is 8GB. Light Untar for iOS is limited to files no greater than this. Light Untar also limits NSData representations to ~4GB.

For transparency sake, and per wikipedia

star in 2001 introduced a base-256 coding that is indicated by setting the high-order bit of the leftmost byte of a numeric field. GNU-tar and BSD-tar followed this idea.

This allows for file sizes much larger than 8GB.

Light Untar should check for this and return the correct decimal value.

In practice I don't believe there will be many instances where you'll have files that are larger than 8GB on iOS, but a more future proof solution would be nice.

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

No branches or pull requests

1 participant