-
Notifications
You must be signed in to change notification settings - Fork 45
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
5-byte padding #15
Comments
Hi, thank you for reporting the problem. The xz specification says that the padding of a block header should be not greater than 3. However it appears that there are files in the wild with a padding of 4 or 5. I have already removed the padding size in the test code and could successfully extract the file. It will take a little bit longer for a release. |
The xz specification allows a maximum padding of 3 bytes in the block header. However there have been reportedly files with a a padding of 4 or 5 bytes in the wild. The only reasonable approach is to remove the test. This fixes issue #15.
The release 0.5.4 fixes issue #15 but changes also the copyright notices to 2014-2017.
Release 0.5.4 fixes the issue. |
@ulikunitz I use your lib in my work and I must say that it's awesome and I do appreciate the effort that you put in your work. Said that... I think such restriction doesn't exists. The only restriction seems that all bytes left, after
|
You are right. It seems that I confused it with the block padding.
I create an issue as a reminder. |
I've a deb package from my local
/var/cache/apt/archives
. I'm using debian stretch and the package isaccountsservice_0.6.43-1_amd64.deb
.If I execute the following commands, everything works (no warnings):
But if I run the following code (where
t/data.tar.xz
is the file extracted from the deb cited above), I got an error:The execution output is (I'm using Gogland IDE, but the result is the same if I run from terminal):
Note 1: line 127 is the line of the 3rd panic()
Note 2:
xz --test data.tar.xz && echo OK
run fine and the same deb file is installed in my system, so it's a valid deb file.I'm attaching the deb file in question: accountsservice_0.6.43-1_amd64.deb.zip
The text was updated successfully, but these errors were encountered: