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

Support reading CRC32 from header #54

Open
gregyski opened this issue Mar 13, 2017 · 3 comments
Open

Support reading CRC32 from header #54

gregyski opened this issue Mar 13, 2017 · 3 comments
Labels

Comments

@gregyski
Copy link

Would it be possible to support reading the CRC32 hash for the contained files from headers that contain them, such as those for 7-zip? Currently the entries produced by file_reader() do not seem to do so.

Thank you.

@Changaco
Copy link
Owner

I don't know, it depends on whether or not libarchive has a function we can use to access them.

@gregyski
Copy link
Author

gregyski commented Mar 13, 2017

Aye. I've been trying to determine that. I think it's stored like the other properties like uncompressed size and modified timestamp.

Edit: Actually perhaps not, _7zip_entry doesn't seem to contain it.
Edit 2: I think, for 7zip, it may be obtained in read_SubStreamsInfo(). But I don't know the file format well enough to be sure. I'll look at the 7zip source sometime in the next week and see if I can determine if it's something libarchive accesses or not. Even if it is, it may not have a format-independent function for obtaining it.

@eadmaster
Copy link

related: libarchive/libarchive#1003

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

3 participants