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

Unhelpful error when extracting encrypted data only RAR #1661

Open
ignapk opened this issue Feb 7, 2022 · 2 comments · May be fixed by #2096
Open

Unhelpful error when extracting encrypted data only RAR #1661

ignapk opened this issue Feb 7, 2022 · 2 comments · May be fixed by #2096

Comments

@ignapk
Copy link

ignapk commented Feb 7, 2022

When extracting password protected RAR archives with only data encrypted, the error message is:

Unsupported block header size (was 7, max is 2)

instead of the error that is given for RAR archives with both data and metadata encrypted:

RAR encryption support unavailable
@synodriver
Copy link

I've met the same problem when trying to wrap libarchive into a python library. It's seems there is no support for encrypted rar files at this moment.

@dunhor
Copy link
Contributor

dunhor commented Mar 30, 2024

My main intent wasn't to give a better message in this scenario, but my change #2096 will make this not only easier to identify encryption in RAR5 archives, but to also improve the error message. E.g. see the error message here: https://github.com/dunhor/libarchive/blob/968471dad85f23925a3e507db5b98be8c513c70f/libarchive/archive_read_support_format_rar5.c#L4105

@dunhor dunhor linked a pull request Apr 4, 2024 that will close this issue
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 a pull request may close this issue.

3 participants