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

Attempting to unpack a small, invalid tar file crashes. #14

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

Attempting to unpack a small, invalid tar file crashes. #14

ianterrell opened this issue Feb 24, 2014 · 0 comments

Comments

@ianterrell
Copy link

If the file passed to the library to decompress is under 157 bytes (TAR_TYPE_POSITION + 1) then the typeForObject:atOffset: (NSFileManager+Tar.m line 189) will crash. Expected behavior is for the API to fail gracefully. This could be handled with a check on the file size.

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