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
7z inflation fails. #556
Comments
Thank you for the report. The best way to get such issues fixed is to provide us with a small sample file (ideally, just a few kilobytes) that demonstrates the problem. We can then add that to our test suite, which will both help us quickly fix the problem and ensure it does not reappear in the future. Of course, if you also have a fix for the bug, we always appreciate pull requests. |
I think I have the same problem - any 7z file created in the latest 7zip beta. |
Hopefully I'll find the time to submit the bug fix asap. On Tue, Jun 16, 2015, 17:35 Marshallx notifications@github.com wrote:
|
7z inflation fails
Fix for issue - libarchive#556
Pull request created. |
Thanks for the bug fix! |
Hey, was this related to open issue |
Commented in #535 . |
7z inflation fails
Hi,
I'm using the latest libarchive release (not master).
I've created a file with 7zip (lzma - default settings).
I then tried to inflate it VIA libarchive.
I was unable to get it to work. It would fail without an error reason.
So I started debugging the code and discovered that I'm missing the "seek_callback" (Too bad there is no error code for that).
After implementing the "seek_callback" I tried again. It had failed again but this time it told me the 7zip header is corrupted.
So I started debugging a second time and discovered there is a bug in the libarchive 7zip code. It would seem that libarchive 7zip has issues with handling the "Dummy" header (kDummy). The "Dummy" header is for padding and is often of length 0. The current code has issues with handling headers of length 0.
After fixing the bug - inflation was successful.
To reproduce:
10x,
Tomer.
The text was updated successfully, but these errors were encountered: