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

C decoder does not accept valid offsets #57

Open
alexfernandez opened this issue Dec 19, 2017 · 0 comments
Open

C decoder does not accept valid offsets #57

alexfernandez opened this issue Dec 19, 2017 · 0 comments

Comments

@alexfernandez
Copy link

I have tried to decompress the attached file (inside a .zip) with node-lz4, both with useJS and without it. With useJS it works fine; without it it does not. I suspect it is an issue with the C decoder, since I think it is valid. The offending sequence is in hex:

token: f1
literal length: 12
literal: 204f63742020332031323a33373a3437206b65726e656c3a205b20202020302e30
offset: 0100

It contains a literal of length 33 and then an offset of 01, which should be valid since it indicates to copy from the previous literal.

Thanks!

offsets.lz4.zip

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